Skip to content

Commit

Permalink
Assert that rootTokenToChildToken exists in the provided predicate ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Jun 25, 2023
1 parent 99acd6c commit b27d940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e-polybft/e2e/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ func getChildToken(t *testing.T, predicateABI *abi.ABI, predicateAddr types.Addr
rootToken types.Address, relayer txrelayer.TxRelayer) types.Address {
t.Helper()

rootToChildTokenFn := predicateABI.Methods["rootTokenToChildToken"]
rootToChildTokenFn, exists := predicateABI.Methods["rootTokenToChildToken"]
require.True(t, exists, "rootTokenToChildToken function is not found in the provided predicate ABI definition")
input, err := rootToChildTokenFn.Encode([]interface{}{rootToken})

Check failure on line 342 in e2e-polybft/e2e/helpers_test.go

View workflow job for this annotation

GitHub Actions / golangci_lint

assignments should only be cuddled with other assignments (wsl)

Check failure on line 342 in e2e-polybft/e2e/helpers_test.go

View workflow job for this annotation

GitHub Actions / golangci_lint

assignments should only be cuddled with other assignments (wsl)
require.NoError(t, err)

Expand Down

0 comments on commit b27d940

Please sign in to comment.