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 59dacc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ coverage:
default:
target: 66%
if_not_found: success
if_ci_failed: success
threshold: 1% # Allow coverage to drop by X%, posting a success status.
# removed_code_behavior: Takes values [off, removals_only, adjust_base]
removed_code_behavior: adjust_base
patch:
default:
target: 69%
if_ci_failed: success
target: 0%

comment: # this is a top-level key
layout: " diff, flags, files"
Expand Down
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 59dacc1

Please sign in to comment.