Skip to content

Commit

Permalink
add networkId to unlock functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykosinski committed Sep 26, 2019
1 parent a83ab30 commit 496e244
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/server/utils/tx-manager/queueMongo.js
Expand Up @@ -79,7 +79,8 @@ export default class queueMongo {
if (!wallet) {
await this.model.create({
address,
nonce: netNonce
nonce: netNonce,
networkId: this.networkId
})
}
} catch (e) {
Expand All @@ -99,7 +100,8 @@ export default class queueMongo {
await this.model.findOneAndUpdate(
{ address },
{
isLock: false
isLock: false,
networkId: this.networkId
},
{ returnNewDocument: true }
)
Expand All @@ -119,7 +121,8 @@ export default class queueMongo {
{ address },
{
isLock: false,
nonce: nextNonce
nonce: nextNonce,
networkId: this.networkId
},
{ returnNewDocument: true }
)
Expand Down

0 comments on commit 496e244

Please sign in to comment.