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

@ -893,7 +893,7 @@ describe('TimelockController', function () {
operation.predecessor,
operation.salt,
),
).to.be.revertedWithCustomError(this.mock, 'FailedInnerCall');
).to.be.revertedWithCustomError(this.mock, 'FailedCall');
});
});
});
@ -1099,7 +1099,7 @@ describe('TimelockController', function () {
this.mock
.connect(this.executor)
.execute(operation.target, operation.value, operation.data, operation.predecessor, operation.salt),
).to.be.revertedWithCustomError(this.mock, 'FailedInnerCall');
).to.be.revertedWithCustomError(this.mock, 'FailedCall');
});
it('call throw', async function () {
@ -1146,7 +1146,7 @@ describe('TimelockController', function () {
.execute(operation.target, operation.value, operation.data, operation.predecessor, operation.salt, {
gasLimit: '100000',
}),
).to.be.revertedWithCustomError(this.mock, 'FailedInnerCall');
).to.be.revertedWithCustomError(this.mock, 'FailedCall');
});
it('call payable with eth', async function () {
@ -1199,7 +1199,7 @@ describe('TimelockController', function () {
this.mock
.connect(this.executor)
.execute(operation.target, operation.value, operation.data, operation.predecessor, operation.salt),
).to.be.revertedWithCustomError(this.mock, 'FailedInnerCall');
).to.be.revertedWithCustomError(this.mock, 'FailedCall');
expect(await ethers.provider.getBalance(this.mock)).to.equal(0n);
expect(await ethers.provider.getBalance(this.callreceivermock)).to.equal(0n);
@ -1227,7 +1227,7 @@ describe('TimelockController', function () {
this.mock
.connect(this.executor)
.execute(operation.target, operation.value, operation.data, operation.predecessor, operation.salt),
).to.be.revertedWithCustomError(this.mock, 'FailedInnerCall');
).to.be.revertedWithCustomError(this.mock, 'FailedCall');
expect(await ethers.provider.getBalance(this.mock)).to.equal(0n);
expect(await ethers.provider.getBalance(this.callreceivermock)).to.equal(0n);