Add EIP-712 name and version getters (#4303)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -98,6 +98,14 @@ contract('EIP712', function (accounts) {
|
||||
|
||||
await this.eip712.verify(signature, wallet.getAddressString(), message.to, message.contents);
|
||||
});
|
||||
|
||||
it('name', async function () {
|
||||
expect(await this.eip712.$_EIP712Name()).to.be.equal(name);
|
||||
});
|
||||
|
||||
it('version', async function () {
|
||||
expect(await this.eip712.$_EIP712Version()).to.be.equal(version);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user