Skip to content

Commit

Permalink
[test] fix: add CanTransfer function to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jun 2, 2022
1 parent 500cabf commit e5b3b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/vm/contracts_write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ func testCrossShardXferPrecompile(test writeCapablePrecompileTest, t *testing.T)
var env = NewEVM(Context{
NumShards: 4,
Transfer: transfer,
CanTransfer: func(_ StateDB, _ common.Address, _ *big.Int) bool {
return true
},
}, state, params.TestChainConfig, Config{})
p := &crossShardXferPrecompile{}
testWriteCapablePrecompile(test, t, env, p)
Expand Down

0 comments on commit e5b3b2f

Please sign in to comment.