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 7852f92
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
31 changes: 1 addition & 30 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified common/git-hooks/pre-commit
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion packages/neon-dappkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"test-print": "ts-mocha src/**/*.spec.ts"
},
"dependencies": {
"@cityofzion/neon-core": "5.5.1",
"@cityofzion/neon-dappkit-types": "workspace:*",
"@cityofzion/neon-js": "5.5.1",
"crypto-js": "^4.1.1",
"elliptic": "^6.5.4",
"randombytes": "^2.1.0"
},
"devDependencies": {
"@cityofzion/neon-core": "5.5.1",
"@types/elliptic": "6.4.14",
"@types/expect": "^24.3.0",
"@types/mocha": "10.0.0",
Expand Down
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 7852f92

Please sign in to comment.