Skip to content

Commit

Permalink
fix(indexer): register eth and evm types during test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed May 6, 2024
1 parent 0f9efda commit c6fab21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eth/indexer/kv_indexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ func TestKVIndexer(t *testing.T) {
require.NoError(t, tx.Sign(ethSigner, signer))
txHash := tx.AsTransaction().Hash()

encodingConfig := MakeEncodingConfig()
clientCtx := client.Context{}.WithTxConfig(encodingConfig.TxConfig).WithCodec(encodingConfig.Codec)
encCfg := MakeEncodingConfig()
eth.RegisterInterfaces(encCfg.InterfaceRegistry)
evm.RegisterInterfaces(encCfg.InterfaceRegistry)
clientCtx := client.Context{}.
WithTxConfig(encCfg.TxConfig).
WithCodec(encCfg.Codec)

// build cosmos-sdk wrapper tx
tmTx, err := tx.BuildTx(clientCtx.TxConfig.NewTxBuilder(), eth.EthBaseDenom)
Expand Down

0 comments on commit c6fab21

Please sign in to comment.