Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat 📜: add BLS12-381 precompiles #3197

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
update gas costs 3 & fund dorothy (oog)
  • Loading branch information
pLabarta committed Feb 25, 2025
commit 3da8dc79b96b52e7f1a7d0eaff777404efe47454
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ethan,
} from "@moonwall/util";
import { nToHex } from "@polkadot/util";
import { setupWithParticipants } from "../../../../helpers";
import { fundAccount, setupWithParticipants } from "../../../../helpers";

describeSuite({
id: "D012865",
Expand Down Expand Up @@ -45,6 +45,8 @@ describeSuite({
context.polkadotJs().tx.proxy.addProxy(demoContractAddress, "Staking", 0).signAsync(dorothy)
);

await fundAccount(DOROTHY_ADDRESS, 1n * GLMR, context);

await context.writeContract!({
contractAddress: demoContractAddress,
contractName: "ProxyCallStakingDemo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ describeSuite({
// pov_gas = proof_size * GAS_LIMIT_POV_RATIO
// proof size reclaim seems indeterministic
expect(gasUsed).toBeGreaterThan(expectedMinimumPovGas);
expect(gasUsed).toBeLessThan(expectedMinimumPovGas + 2000n);
expect(gasUsed).toBeLessThan(expectedMinimumPovGas + 3000n);

expect(await context.viem().getBalance({ address: randomAccount })).toBe(parseEther("5"));

Expand Down
Loading