all: switch gas limits from big.Int to uint64
This commit is contained in:
@ -20,7 +20,6 @@ package geth
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"math/big"
|
||||
|
||||
ethereum "github.com/ethereum/go-ethereum"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
@ -49,7 +48,7 @@ func NewCallMsg() *CallMsg {
|
||||
}
|
||||
|
||||
func (msg *CallMsg) GetFrom() *Address { return &Address{msg.msg.From} }
|
||||
func (msg *CallMsg) GetGas() int64 { return msg.msg.Gas.Int64() }
|
||||
func (msg *CallMsg) GetGas() int64 { return int64(msg.msg.Gas) }
|
||||
func (msg *CallMsg) GetGasPrice() *BigInt { return &BigInt{msg.msg.GasPrice} }
|
||||
func (msg *CallMsg) GetValue() *BigInt { return &BigInt{msg.msg.Value} }
|
||||
func (msg *CallMsg) GetData() []byte { return msg.msg.Data }
|
||||
@ -61,7 +60,7 @@ func (msg *CallMsg) GetTo() *Address {
|
||||
}
|
||||
|
||||
func (msg *CallMsg) SetFrom(address *Address) { msg.msg.From = address.address }
|
||||
func (msg *CallMsg) SetGas(gas int64) { msg.msg.Gas = big.NewInt(gas) }
|
||||
func (msg *CallMsg) SetGas(gas int64) { msg.msg.Gas = uint64(gas) }
|
||||
func (msg *CallMsg) SetGasPrice(price *BigInt) { msg.msg.GasPrice = price.bigint }
|
||||
func (msg *CallMsg) SetValue(value *BigInt) { msg.msg.Value = value.bigint }
|
||||
func (msg *CallMsg) SetData(data []byte) { msg.msg.Data = common.CopyBytes(data) }
|
||||
|
Reference in New Issue
Block a user