Move sending status to earlier in signer (#2638)

This commit is contained in:
Jaco Greeff 2020-04-27 17:00:55 +02:00 committed by GitHub
parent d398dafe4a
commit 1308ceb6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,6 +753,8 @@ class Signer extends React.PureComponent<Props, State> {
txStartCb();
}
queueSetTxStatus(id, 'sending');
try {
const unsubscribe = await extrinsicCall.apply(extrinsic, [
...params,
@ -788,8 +790,6 @@ class Signer extends React.PureComponent<Props, State> {
}
}
]);
queueSetTxStatus(id, 'sending');
} catch (error) {
console.error('makeExtrinsicCall: error:', error);
queueSetTxStatus(id, 'error', {}, error);