Skip to content

Paymaster Flow Issue with "zksync-ethers" Upgrade #530

Discussion options

You must be logged in to vote

Sorry fro the late answer.

Wallet.createRandom() does not function the same way in v6 as in v5. So random wallet should be created like in the example below.
Example:

async function registerQuestUsingPaymaster() {
  // create zksync provider
  const provider = new Provider(zksyncRpcUrl);
  // generate random wallet
  const wallet = new Wallet(Wallet.createRandom().privateKey, provider, null);

  // register quest with newly generated wallet
  await registerQuest(wallet);
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@gauravl-tevaeralabs
Comment options

@tevanrobin
Comment options

@tevanrobin
Comment options

@0xsisyfos
Comment options

Answer selected by 0xsisyfos
@gauravl-tevaeralabs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs
5 participants