Skip to content

Commit

Permalink
fix check for error on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Oct 24, 2024
1 parent 3a1bb8f commit d6c107f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ func Create(
ce := newExecutor(bytecode, contractAddress, ctx, &ci, ctx.curContract.amount, true, false, contractState)
defer ce.close()

if err == nil {
if ce.err == nil {
// call the constructor
ce.call(callMaxInstLimit, nil)
}
Expand Down

0 comments on commit d6c107f

Please sign in to comment.