MCPcopy
hub / github.com/eth-infinitism/account-abstraction / createAccountOwner

Function createAccountOwner

test/testutils.ts:79–83  ·  view source on GitHub ↗
(provider: Provider = ethers.provider)

Source from the content-addressed store, hash-verified

77
78// create non-random account, so gas calculations are deterministic
79export function createAccountOwner (provider: Provider = ethers.provider): Wallet {
80 const privateKey = keccak256(Buffer.from(arrayify(BigNumber.from(++counter))))
81 return new ethers.Wallet(privateKey, provider)
82 // return new ethers.Wallet('0x'.padEnd(66, privkeyBase), ethers.provider);
83}
84
85export function createAddress (): string {
86 return createAccountOwner().address

Callers 10

entrypoint.test.tsFile · 0.90
postop.test.tsFile · 0.90
constructorMethod · 0.90
createAddressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected