Skip to content

Commit

Permalink
fix ts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed May 6, 2024
1 parent 9bacce3 commit d27cff3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/contracts/src/ERC20ExcessGas.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract ERC20ExcessGas is ERC20WithInitialSupply {
uint256 amount
) public override returns (bool) {
// Consume gas to over Erc20XcmBridgeTransferGasLimit
for (uint i = 0; i < 2000; i++) {
for (uint i = 0; i < 2200; i++) {
_gasHog += i;
}

Expand Down
6 changes: 3 additions & 3 deletions test/suites/dev/moonbase/test-fees/test-fee-multiplier-max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describeSuite({
blockNumber = (await context.polkadotJs().rpc.chain.getHeader()).number.toBigInt();
baseFeePerGas = (await context.viem().getBlock({ blockNumber: blockNumber }))
.baseFeePerGas!;
expect(baseFeePerGas).to.equal(124_752_265_078_107n);
expect(baseFeePerGas).to.equal(124_752_134_188_357n);

const rawSigned = await createEthersTransaction(context, {
to: contractAddress,
Expand All @@ -163,15 +163,15 @@ describeSuite({
({ event }) => event.method == "ExtrinsicSuccess"
)[0];
const weight = successEvent.event.data.dispatchInfo.weight.refTime.toBigInt();
expect(weight).to.equal(2_378_300_000n);
expect(weight).to.equal(1_734_300_000n);

const withdrawEvents = interactionResult?.events.filter(
({ event }) => event.method == "Withdraw"
);
expect(withdrawEvents?.length).to.equal(1);
const withdrawEvent = withdrawEvents![0];
const amount = withdrawEvent.event.data.amount.toBigInt();
expect(amount).to.equal(11_867_932_481_410_475_124n);
expect(amount).to.equal(11_867_920_029_606_778_124n);
},
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describeSuite({
// (Account Code Size (112) + Length of the bytecode (550)) * Storage Growth Gas Ratio (366)
// The length of the bytecode is in the generate Fibonacci.json
// file at 'contract.evm.deployedBytecode.object'
const EXPECTED_STORAGE_GROWTH_GAS = 242_292;
const EXPECTED_STORAGE_GROWTH_GAS = 222_292;
for (const txnType of TransactionTypes) {
it({
id: `T0${TransactionTypes.indexOf(txnType) + 1}`,
Expand Down Expand Up @@ -42,7 +42,7 @@ describeSuite({
});

expect(estimatedGas).toBeGreaterThanOrEqual(EXPECTED_STORAGE_GROWTH_GAS);
expect(estimatedGas).toBe(263644n);
expect(estimatedGas).toBe(226670n);
},
});

Expand Down

0 comments on commit d27cff3

Please sign in to comment.