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:
Renan Souza
2023-06-13 23:54:09 -03:00
committed by GitHub
parent d6c7cee321
commit 604025400f
4 changed files with 88 additions and 45 deletions

View File

@ -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);
});
});
}
});