Skip to content

Commit

Permalink
Merge pull request #3136 from iotaledger/add_nil_check_accounts
Browse files Browse the repository at this point in the history
chore: add a nil check into accounts.foundryModifySupply
  • Loading branch information
lmoe authored Dec 5, 2023
2 parents b8755eb + f88ff5b commit 0bd7518
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vm/core/accounts/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func foundryModifySupply(ctx isc.Sandbox) dict.Dict {
}

out, _ := GetFoundryOutput(state, sn, ctx.ChainID())
if out == nil {
panic(errFoundryNotFound)
}

nativeTokenID, err := out.NativeTokenID()
ctx.RequireNoError(err, "internal")

Expand Down

0 comments on commit 0bd7518

Please sign in to comment.