Skip to content
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

Merged
merged 22 commits into from
Apr 4, 2023
Merged

Get sign from server #99

merged 22 commits into from
Apr 4, 2023

Conversation

seki-seki
Copy link
Contributor

No description provided.

@seki-seki seki-seki marked this pull request as ready for review February 16, 2023 10:14
Comment on lines +59 to +61
const castedSigner = signer as any;
// eslint-disable-next-line
const chainId = castedSigner.hasOwnProperty("eth")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signer instanceof Web3 でうまく動かなかったので暫定的にこれ
signerの型を調べるロジックを切り出す必要がある

posaune0423
posaune0423 previously approved these changes Mar 5, 2023
@@ -228,10 +230,11 @@ export class VWBLNFTMetaTx {
batchNonce,
data
);
console.log("se");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認ですがこのsereというログ出力は意図的なものであってますかね?もしそうなら問題ないです〜

@posaune0423
Copy link
Contributor

@seki-seki

approveですが一点だけコメントしました!
あと、以前決めたブランチ運用的にmasterへのpushはリリースの自動生成やnpmのバージョンアップと連携しているのでheadはdevelopに向けた方が良いですかね?

delete console log
@seki-seki seki-seki changed the base branch from master to develop March 5, 2023 21:45
@bibitto
Copy link
Contributor

bibitto commented Mar 7, 2023

以下を追加実装

  • VWBLクラスの共通化
  • VWBLBaseにsignMsgを追加(signMsgがnonce入りでない場合、都度証明する必要がないため)

@bibitto
Copy link
Contributor

bibitto commented Mar 8, 2023

以下を追加実装

  • npm publishする前にビルドする(橋本さんが言ってたやつ)
  • VIewerクラスのethers対応&VWBLBBaseとの切り分け
  • VWBLクラスのextractMetadataによって全てのコントラクトからメタデータを抽出できるように

const address = await this._getAddressBySigner(signer);
const signatureString = await this.api
.getSignatureString(this.contractAddress, chainId, address)
.catch(() => MESSAGE_TO_BE_SIGNED);
Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

追加

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

書き忘れ?

@bibitto
Copy link
Contributor

bibitto commented Mar 13, 2023

以下を追加実装

  • VWBLBaseのsign関数にnonce無し署名メッセージの時は2回目以下の署名を省略(修正漏れ)
  • viewerクラスで使っていたinstance of がうまく機能しなかったので修正(
    fix: use ethers in viewer class → fix: replace instance of)
  • VWBLMetaTxでもethers.jsに対応(修正漏れ)

@bibitto bibitto merged commit d15fd45 into develop Apr 4, 2023
@bibitto bibitto deleted the fix/sign branch April 4, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants