Add signer constructors (#5757)
Co-authored-by: ernestognw <ernestognw@gmail.com> Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -6,7 +6,7 @@ describe('ERC7739', function () {
|
||||
describe('for an ECDSA signer', function () {
|
||||
before(async function () {
|
||||
this.signer = ethers.Wallet.createRandom();
|
||||
this.mock = await ethers.deployContract('ERC7739ECDSAMock', [this.signer.address]);
|
||||
this.mock = await ethers.deployContract('$ERC7739ECDSAMock', ['ERC7739ECDSA', '1', this.signer.address]);
|
||||
});
|
||||
|
||||
shouldBehaveLikeERC1271({ erc7739: true });
|
||||
@ -15,7 +15,9 @@ describe('ERC7739', function () {
|
||||
describe('for a P256 signer', function () {
|
||||
before(async function () {
|
||||
this.signer = new NonNativeSigner(P256SigningKey.random());
|
||||
this.mock = await ethers.deployContract('ERC7739P256Mock', [
|
||||
this.mock = await ethers.deployContract('$ERC7739P256Mock', [
|
||||
'ERC7739P256',
|
||||
'1',
|
||||
this.signer.signingKey.publicKey.qx,
|
||||
this.signer.signingKey.publicKey.qy,
|
||||
]);
|
||||
@ -27,7 +29,9 @@ describe('ERC7739', function () {
|
||||
describe('for an RSA signer', function () {
|
||||
before(async function () {
|
||||
this.signer = new NonNativeSigner(RSASHA256SigningKey.random());
|
||||
this.mock = await ethers.deployContract('ERC7739RSAMock', [
|
||||
this.mock = await ethers.deployContract('$ERC7739RSAMock', [
|
||||
'ERC7739RSA',
|
||||
'1',
|
||||
this.signer.signingKey.publicKey.e,
|
||||
this.signer.signingKey.publicKey.n,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user