Skip to content

Commit

Permalink
increase gas price, bump version (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroxbt authored Dec 6, 2022
1 parent d225065 commit 699e3c0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "6.0.0-beta.3.1.1",
"version": "6.0.0-beta.3.1.2",
"description": "OTNode v6 Beta 2",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion scripts/set-ask.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ async function setAsk(rpcEndpoint, ask, walletPrivateKey, hubContractAddress) {
const askWei = ethers.utils.parseEther(ask);

const walletSigner = wallet.connect(provider);
await profile.connect(walletSigner).setAsk(identityId, askWei, { gasLimit: 1_000_000 });
await profile
.connect(walletSigner)
.setAsk(identityId, askWei, { gasPrice: 1_000, gasLimit: 1_000_000 });
}

const expectedArguments = ['rpcEndpoint', 'ask', 'privateKey', 'hubContractAddress'];
Expand Down
2 changes: 1 addition & 1 deletion scripts/set-operator-fee.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function setOperatorFee(rpcEndpoint, operatorFee, walletPrivateKey, hubCon
const walletSigner = wallet.connect(provider);
stakingContract
.connect(walletSigner)
.setOperatorFee(identityId, operatorFee, { gasLimit: 1_000_000 });
.setOperatorFee(identityId, operatorFee, { gasPrice: 1_000, gasLimit: 1_000_000 });
}

const expectedArguments = ['rpcEndpoint', 'operatorFee', 'privateKey', 'hubContractAddress'];
Expand Down
7 changes: 5 additions & 2 deletions scripts/set-stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ async function setStake(
const managementWalletSigner = managementWallet.connect(provider);
await tokenContract
.connect(managementWalletSigner)
.increaseAllowance(stakingContractAddress, stakeWei, { gasLimit: 1_000_000 });
.increaseAllowance(stakingContractAddress, stakeWei, {
gasPrice: 1_000,
gasLimit: 1_000_000,
});
// TODO: Add ABI instead of hard-coded function definition
await stakingContract
.connect(managementWalletSigner)
['addStake(uint72,uint96)'](identityId, stakeWei, { gasLimit: 1_000_000 });
['addStake(uint72,uint96)'](identityId, stakeWei, { gasPrice: 1_000, gasLimit: 1_000_000 });
}

const expectedArguments = [
Expand Down

0 comments on commit 699e3c0

Please sign in to comment.