Skip to content

Commit 542c73d

Browse files
authored
Merge pull request #2091 from AmbireTech/fix/ethereum-provider-error-handling-bug
Fix / EthereumProvider error handing bug
2 parents eb26d3d + 76d29dc commit 542c73d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/requests/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ export class RequestsController extends EventEmitter implements IRequestsControl
994994
const atomicRequired = isWalletSendCalls && !!request.params[0].atomicRequired
995995
if (isWalletSendCalls && atomicRequired && baseAcc.getAtomicStatus() === 'unsupported') {
996996
throw ethErrors.provider.custom({
997-
code: 5700,
997+
code: 4999, // the custom code should be in the required range by the lib
998998
message: 'Transaction failed - atomicity is not supported for this account'
999999
})
10001000
}

0 commit comments

Comments
 (0)