Skip to content

Commit

Permalink
chore: rm hardcode gasLimit (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu authored Jun 27, 2022
1 parent 3bedea0 commit cbb250e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/test/HeadTail.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ describe('HeadTail', () => {
const contractFact = await ethers.getContractFactory("HeadTail");
const contract = await contractFact.deploy(signedChoiceHash, stake, {
value: stake,
gasLimit: 10000000,
});
await contract.deployed();
return contract;
Expand Down Expand Up @@ -116,7 +115,7 @@ describe('HeadTail', () => {
const tx = await contract.connect(userTwo).depositUserTwo(true, { value: BET_VALUE });
await tx.wait();

const tx1 = await contract.revealUserOneChoice(userOneChoice, userOneChoiceSecret, { gasLimit: 10000000 });
const tx1 = await contract.revealUserOneChoice(userOneChoice, userOneChoiceSecret);
const receipt = await tx1.wait();

const event = receipt.events.find(event => event.event === 'Result');
Expand Down

0 comments on commit cbb250e

Please sign in to comment.