Skip to content

Commit

Permalink
console.logs for checking added
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Dec 5, 2023
1 parent a1a7ce6 commit e32f08e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/core/Safe.Execution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,19 @@ describe("Safe", () => {
const data = gasUser.interface.encodeFunctionData("useGas", [80]);
const safeTxGas = 10000;
const tx = buildSafeTransaction({ to, data, safeTxGas, nonce: await safe.nonce() });
console.log(1);
await expect(
executeTx(safe, tx, [await safeApproveHash(user1, safe, tx, true)], { gasLimit: 170000 }),
"Safe transaction should fail with low gasLimit",
).to.emit(safe, "ExecutionFailure");

console.log(2);
await expect(
executeTx(safe, tx, [await safeApproveHash(user1, safe, tx, true)], { gasLimit: 6000000 }),
"Safe transaction should succeed with high gasLimit",
).to.emit(safe, "ExecutionSuccess");

console.log(3);
// This should only work if the gasPrice is 0
tx.gasPrice = 1;
await user1.sendTransaction({ to: safeAddress, value: ethers.parseEther("1") });
Expand Down

0 comments on commit e32f08e

Please sign in to comment.