Skip to content

Commit

Permalink
CU-86a0q6pde - Missing "FAULT" check on calculateFee
Browse files Browse the repository at this point in the history
  • Loading branch information
raulduartep committed Sep 12, 2023
1 parent eb7b406 commit de4421b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file modified common/git-hooks/pre-commit
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions packages/neon-dappkit/src/NeonInvoker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class NeonInvoker implements Neo3Invoker {
u.HexString.fromHex(script),
accountArr[0] ? NeonInvoker.buildMultipleSigner(accountArr, cim.signers) : undefined,
)
if (rpcResult.state === 'FAULT') throw Error(`Execution state is FAULT. Exception: ${rpcResult.exception}`)

return { ...rpcResult, stack: rpcResult.stack as RpcResponseStackItem[] }
}
Expand Down

0 comments on commit de4421b

Please sign in to comment.