-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add getDataByMessageHash data endpoint #950
Conversation
413b273
to
87d6d39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -223,7 +223,7 @@ export class EthereumTx { | |||
|
|||
async estimateProposeFee(signer: Signer, data: Propose) { | |||
const address = await signer.getAddress(); | |||
const hash = await this.getProposeHash(signer, data); | |||
const hash = await this.getProposeHash(address, data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we extract those sx.js changes to separate PR? With yarn changeset
to generate changelog for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
98ef193
to
996351d
Compare
996351d
to
689a1cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Summary
getDataByMessageHash
method that accepts ahash
as params and returns all the information required for the user to re-compute his hash independently.sx.js
in order for thegetProposeHash / getVoteHash / getUpdateProposalHash
methods to accept anaddress
instead of aSigner
(required for thehash-verifier
to work). Also upgrades the corresponding tests.Closes: #949
How to test
yarn link
to link with the hash-verifier script.Question: is
getDataByMessageHash
a proper name? Should we find a better name?