Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramtinms committed Aug 5, 2024
1 parent 935bd69 commit e599782
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion fvm/evm/emulator/emulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,21 @@ func TestFactory(t *testing.T) {

RunWithNewBlockView(t, env, func(blk types.BlockView) {
salt := [32]byte{2}
res, err := blk.DirectCall(
types.NewContractCall(
factoryDeployer,
factoryAddress,
factoryContract.MakeCallData(t, "deployAndDestroy", salt),
200_000,
big.NewInt(0),
0,
),
)
requireSuccessfulExecution(t, err, res)
})

RunWithNewBlockView(t, env, func(blk types.BlockView) {
salt := [32]byte{3}
res, err := blk.DirectCall(
types.NewContractCall(
factoryDeployer,
Expand All @@ -811,7 +826,7 @@ func TestFactory(t *testing.T) {
})

RunWithNewBlockView(t, env, func(blk types.BlockView) {
salt := [32]byte{3}
salt := [32]byte{4}
res, err := blk.DirectCall(
types.NewContractCall(
factoryDeployer,
Expand Down

0 comments on commit e599782

Please sign in to comment.