Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 5d92abc

Browse files
authored
Merge pull request #162 from singnet/development
fixed catch error to sending transaction function
2 parents f64adcd + b180f48 commit 5d92abc

4 files changed

Lines changed: 9 additions & 4977 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ docs
8686
### misc
8787
tmp
8888
_example
89+
90+
### lock files
91+
package-lock.json
92+
yarn.lock

packages/core/src/identities/WalletRPCIdentity.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ class WalletRPCIdentity {
3434
.on('transactionHash', (hash) => {
3535
logger.info(`Transaction hash: ${hash}`);
3636
})
37-
.catch(error => {
38-
logger.error(`Couldn't send transaction. ${error}`);
39-
reject(error);
40-
})
4137
.on('error', (error) => {
4238
logger.error(`Couldn't send transaction. ${error}`);
4339
reject(error);
@@ -48,6 +44,10 @@ class WalletRPCIdentity {
4844
} else {
4945
reject(receipt);
5046
}
47+
})
48+
.catch(error => {
49+
logger.error(`Couldn't send transaction. ${error}`);
50+
reject(error);
5151
});
5252
});
5353
}

0 commit comments

Comments
 (0)