aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-09 08:10:36 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-09 20:13:25 +0800
commit1c364b6beb433d4fd8ffda0daead5752fe05f544 (patch)
tree6c67020fd23acee954673935bbdaec0524a2710d
parentc8a9a4e76d00483280a51bb6c0f9517d6c531589 (diff)
downloadgo-tangerine-1c364b6beb433d4fd8ffda0daead5752fe05f544.tar.gz
go-tangerine-1c364b6beb433d4fd8ffda0daead5752fe05f544.tar.zst
go-tangerine-1c364b6beb433d4fd8ffda0daead5752fe05f544.zip
gas -> gasprice
-rw-r--r--rpc/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 33789a55f..da3219933 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -626,9 +626,9 @@ func (api *EthereumApi) doCall(params json.RawMessage) (string, string, error) {
var gasprice string
if args.GasPrice == nil {
- gas = ""
+ gasprice = ""
} else {
- gas = args.GasPrice.String()
+ gasprice = args.GasPrice.String()
}
return api.xethAtStateNum(args.BlockNumber).Call(args.From, args.To, args.Value.String(), gas, gasprice, args.Data)