Skip to content

Commit a852ccd

Browse files
committed
Tmp test to verify Passport change
1 parent 39713a7 commit a852ccd

2 files changed

Lines changed: 7850 additions & 8094 deletions

File tree

tests/GasEstimation.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,21 @@ contract('Estimate gas usage', (accounts: string[]) => {
113113
expect(estimated + txBaseCost(factoryData)).to.approximately(realTxReceipt.gasUsed.toNumber(), 100_000)
114114
})
115115

116+
it.only('Should estimate without signature', async () => {
117+
const gasEstimator = await new MainModuleGasEstimation__factory().connect(signer).deploy();
118+
let exec = await gasEstimator.simulateExecute(bundle("0x19010000000000000000000000000000000000000000000000000000000000003a9ba31f43f37a45a455caae63222f75e12f5f17cb88b61ff669f0f9977b86b0dcf72a6967fe6b9d824d0d77e94476fe88d7e435bc08"));
119+
let result = await exec.wait(1);
120+
// console.log(result);
121+
exec = await gasEstimator.simulateExecute(bundle("0x19010000000000000000000000000000000000000000000000000000000000003a9ba31f43f37a45a455caae63222f75e12f5f17cb88c0aa4b7f966b95d96de07a22f2b821f5c88d3ed1154db7d0c7c65c5b1a66dda6"));
122+
result = await exec.wait(1);
123+
// console.log(result);
124+
125+
exec = await gasEstimator.simulateExecute(bundle("0x19010000000000000000000000000000000000000000000000000000000000003a9ba31f43f37a45a455caae63222f75e12f5f17cb88c0aa4b7f966b95d96de07a22f2b821f5c88d3ed1154db7d0c7c65c5b1a66dda6"));
126+
console.log(exec);
127+
result = await exec.wait(1);
128+
console.log(result);
129+
})
130+
116131
it('Should estimate wallet deployment + upgrade', async () => {
117132
// const newImplementation = (await ModuleMockArtifact.new()) as ModuleMock
118133
const newImplementation = await new ModuleMock__factory().connect(signer).deploy()

0 commit comments

Comments
 (0)