Closed pmerkleplant closed 1 year ago
The test suite's performance can be considerably increased by using forge-std's new vm.createWallet(uint privateKey) external returns (Wallet memory wallet); cheatcode to compute a private key's public key instead of doing it via raw Solidity.
forge-std
vm.createWallet(uint privateKey) external returns (Wallet memory wallet);
A simple grep -rn "derivePublicKey" src/ script/ will yield occurrences to optimize.
grep -rn "derivePublicKey" src/ script/
Note that this issue is blocked by forge-std releasing a new version as we do not want to clone directly from master/main.
clone
And here we go: https://github.com/foundry-rs/forge-std/releases/tag/v1.6.1
The test suite's performance can be considerably increased by using
forge-std
's newvm.createWallet(uint privateKey) external returns (Wallet memory wallet);
cheatcode to compute a private key's public key instead of doing it via raw Solidity.A simple
grep -rn "derivePublicKey" src/ script/
will yield occurrences to optimize.Note that this issue is blocked by
forge-std
releasing a new version as we do not want toclone
directly from master/main.