-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get sign from server #99
Conversation
const castedSigner = signer as any; | ||
// eslint-disable-next-line | ||
const chainId = castedSigner.hasOwnProperty("eth") |
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.
signer instanceof Web3
でうまく動かなかったので暫定的にこれ
signerの型を調べるロジックを切り出す必要がある
@@ -228,10 +230,11 @@ export class VWBLNFTMetaTx { | |||
batchNonce, | |||
data | |||
); | |||
console.log("se"); |
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.
確認ですがこのse
とre
というログ出力は意図的なものであってますかね?もしそうなら問題ないです〜
approveですが一点だけコメントしました! |
delete console log
以下を追加実装
|
以下を追加実装
|
const address = await this._getAddressBySigner(signer); | ||
const signatureString = await this.api | ||
.getSignatureString(this.contractAddress, chainId, address) | ||
.catch(() => MESSAGE_TO_BE_SIGNED); |
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.
if(this.signMsg === signatureString) return
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.
追加
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.
書き忘れ?
以下を追加実装
|
No description provided.