From e5cad8c48bec3a13426f0d2e2a534976af412cd7 Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Thu, 2 Jun 2022 13:23:03 +0530 Subject: [PATCH] fix: fix the client test issues --- gql/util.go | 2 +- init.sh | 2 +- types/codec.go | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gql/util.go b/gql/util.go index bbcdb2f1..7af2aa0e 100644 --- a/gql/util.go +++ b/gql/util.go @@ -24,7 +24,7 @@ const ExpiryTimeAttributeName = "expiryTime" func getGQLCoin(coin sdk.Coin) *Coin { gqlCoin := Coin{ Type: coin.Denom, - Quantity: coin.Amount.String(), + Quantity: coin.Amount.BigInt().String(), } return &gqlCoin diff --git a/init.sh b/init.sh index bfd5f72d..c4728699 100755 --- a/init.sh +++ b/init.sh @@ -111,4 +111,4 @@ if [[ $1 == "pending" ]]; then fi # Start the node (remove the --pruning=nothing flag if historical queries are not needed) -chibaclonkd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable --gql-server --gql-playground +chibaclonkd start --mode validator --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable --gql-server --gql-playground diff --git a/types/codec.go b/types/codec.go index 0db2b542..29b9884b 100644 --- a/types/codec.go +++ b/types/codec.go @@ -2,6 +2,7 @@ package types import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/types/tx" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) @@ -23,4 +24,9 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { (*ExtensionOptionsWeb3TxI)(nil), &ExtensionOptionsWeb3Tx{}, ) + registry.RegisterInterface( + "ethermint.types.v1.ExtensionOptionsWeb3Tx", + (*tx.TxExtensionOptionI)(nil), + &ExtensionOptionsWeb3Tx{}, + ) }