From a04e57e42a917cc9bb67f951d4256f2da4775cd5 Mon Sep 17 00:00:00 2001 From: brion Date: Tue, 20 Dec 2022 00:33:34 +0800 Subject: [PATCH] fix type error --- internal/ethapi/api_multicall.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ethapi/api_multicall.go b/internal/ethapi/api_multicall.go index b7ab8c881d..389e206079 100644 --- a/internal/ethapi/api_multicall.go +++ b/internal/ethapi/api_multicall.go @@ -142,11 +142,11 @@ func handleNative(ctx context.Context, state *state.StateDB, msg types.Message) } switch method.Name { case "name", "symbol": - return method.Outputs.Pack("ETH") + return method.Outputs.PackValues([]interface{}{"ETH"}) case "decimals": - return method.Outputs.Pack(18) + return method.Outputs.PackValues([]interface{}{18}) 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" {