Skip to content

Commit

Permalink
adding option for nonce config (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo authored Feb 13, 2024
1 parent 495063e commit 8cc65e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ async function loadDeployer(currentProvider, deployParameters = {}, idx = '0') {
return deployer;
}

async function getNonceWithoutInFlightTxs(provider, address) {
return (await provider.getTransactionCount(address, 'latest')) + 1;
}

module.exports = {
loadProvider, loadDeployer, verifyDeploymentParameters,
loadProvider, loadDeployer, verifyDeploymentParameters, getNonceWithoutInFlightTxs,
};

0 comments on commit 8cc65e3

Please sign in to comment.