mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
fix type error
This commit is contained in:
parent
6fc7bc6c3e
commit
a04e57e42a
1 changed files with 3 additions and 3 deletions
|
|
@ -142,11 +142,11 @@ func handleNative(ctx context.Context, state *state.StateDB, msg types.Message)
|
||||||
}
|
}
|
||||||
switch method.Name {
|
switch method.Name {
|
||||||
case "name", "symbol":
|
case "name", "symbol":
|
||||||
return method.Outputs.Pack("ETH")
|
return method.Outputs.PackValues([]interface{}{"ETH"})
|
||||||
case "decimals":
|
case "decimals":
|
||||||
return method.Outputs.Pack(18)
|
return method.Outputs.PackValues([]interface{}{18})
|
||||||
case "totalSupply":
|
case "totalSupply":
|
||||||
return method.Outputs.Pack(120 * 1_000_000 * 18)
|
return method.Outputs.PackValues([]interface{}{120 * 1_000_000 * 18})
|
||||||
}
|
}
|
||||||
|
|
||||||
if method.Name == "balanceOf" {
|
if method.Name == "balanceOf" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue