This repository was archived by the owner on Oct 20, 2024. It is now read-only.
v0.3.2
Release notes
This patch release adds 2 changes:
- Fix
verificationGasLimit
typo ineth_estimateUserOperationGas
(verificationGas
is still used as fallback to prevent breaking changes). - Add the ability to override the salt in preset builders so that a single signer can control multiple contract accounts.
Salt override
Below is an example for how to override the salt to generate new contract addresses using the same signing key.
export default async function main() {
const acc = await Presets.Builder.SimpleAccount.init(
new ethers.Wallet(SIGNING_KEY),
RPC_URL,
{ salt: NUMBER }
);
const address = acc.getSender();
console.log(`Address: ${address}`);
}
What's Changed
- Use the same node version range as ethers.js by @hazim-j in #61
- Add optional value to pass salt to presets by @hazim-j in #87
- Bump to v0.3.2 by @hazim-j in #88
- Fix verificationGasLimit typo by @hazim-j in #89
Full Changelog: v0.3.0...v0.3.2