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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user