Commit 5d8be9c3 authored by Taylor Gerring's avatar Taylor Gerring

Fixed decoding for uint64 into bytes

parent eac4d582
......@@ -17,6 +17,7 @@
package rpc
import (
"encoding/binary"
"encoding/json"
"fmt"
"math/big"
......@@ -65,7 +66,9 @@ func newHexData(input interface{}) *hexdata {
case int64:
d.data = big.NewInt(input).Bytes()
case uint64:
d.data = big.NewInt(int64(input)).Bytes()
buff := make([]byte, 8)
binary.BigEndian.PutUint64(buff, input)
d.data = buff
case int:
d.data = big.NewInt(int64(input)).Bytes()
case uint:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment