Add ability to create clones with initial value in Clones.sol (#4936)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Anton Bukov
2024-03-06 20:44:42 +01:00
committed by GitHub
parent 8b2f29ceb0
commit e83142944f
19 changed files with 182 additions and 102 deletions

View File

@ -58,7 +58,7 @@ describe('EIP712', function () {
const clone = await factory
.$clone(this.eip712)
.then(tx => tx.wait())
.then(receipt => receipt.logs.find(ev => ev.fragment.name == 'return$clone').args.instance)
.then(receipt => receipt.logs.find(ev => ev.fragment.name == 'return$clone_address').args.instance)
.then(address => ethers.getContractAt('$EIP712Verifier', address));
const expectedDomain = { ...this.domain, verifyingContract: clone.target };