diff --git a/js/package.json b/js/package.json index c2b7bc9..1ea9653 100644 --- a/js/package.json +++ b/js/package.json @@ -13,7 +13,7 @@ "prettier": "3.0.3", "ts-node": "^10.9.1", "typescript": "^5.1.6", - "zksync-ethers": "6.2.0" + "zksync-ethers": "6.3.0" }, "peerDependencies": { "ethers": "^6.7.1" diff --git a/js/src/03_transfer_paymaster.ts b/js/src/03_transfer_paymaster.ts index 2a89ed6..5fc1348 100644 --- a/js/src/03_transfer_paymaster.ts +++ b/js/src/03_transfer_paymaster.ts @@ -23,7 +23,7 @@ async function main() { const tx = await wallet.transfer({ to: receiver, amount: ethers.parseEther("0.01"), - paymasterParamas: utils.getPaymasterParams(paymasterAddress, { + paymasterParams: utils.getPaymasterParams(paymasterAddress, { type: "ApprovalBased", token: tokenAddress, minimalAllowance: 1, diff --git a/js/src/05_withdraw_paymaster.ts b/js/src/05_withdraw_paymaster.ts index 970d949..9c50612 100644 --- a/js/src/05_withdraw_paymaster.ts +++ b/js/src/05_withdraw_paymaster.ts @@ -22,7 +22,7 @@ async function main() { token: utils.ETH_ADDRESS, to: await wallet.getAddress(), amount: ethers.parseEther("0.00020"), - paymasterParamas: utils.getPaymasterParams(paymasterAddress, { + paymasterParams: utils.getPaymasterParams(paymasterAddress, { type: "ApprovalBased", token: tokenAddress, minimalAllowance: 1, diff --git a/js/src/09_transfer_token_paymaster.ts b/js/src/09_transfer_token_paymaster.ts index dfdafa4..459b192 100644 --- a/js/src/09_transfer_token_paymaster.ts +++ b/js/src/09_transfer_token_paymaster.ts @@ -27,7 +27,7 @@ async function main() { token: token, to: receiver, amount: 5, - paymasterParamas: utils.getPaymasterParams(paymasterAddress, { + paymasterParams: utils.getPaymasterParams(paymasterAddress, { type: "ApprovalBased", token: tokenAddress, minimalAllowance: 1, diff --git a/js/src/11_withdraw_token_paymaster.ts b/js/src/11_withdraw_token_paymaster.ts index 440d384..10ab2b0 100644 --- a/js/src/11_withdraw_token_paymaster.ts +++ b/js/src/11_withdraw_token_paymaster.ts @@ -24,7 +24,7 @@ async function main() { token: token, to: await wallet.getAddress(), amount: 5, - paymasterParamas: utils.getPaymasterParams(paymasterAddress, { + paymasterParams: utils.getPaymasterParams(paymasterAddress, { type: "ApprovalBased", token: tokenAddress, minimalAllowance: 1, diff --git a/js/yarn.lock b/js/yarn.lock index 267127f..3af0b56 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -972,7 +972,7 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -zksync-ethers@6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/zksync-ethers/-/zksync-ethers-6.2.0.tgz#4e75292674133a9066dc6622658deea52c3e777b" - integrity sha512-sM65Wo3E4SzyoMPc2gQWv9kVqlaWBfKxBlREk8Ag4gbY10BS9ON1QEosHtcAT542s4NQjypA9qE8QyQ3oKfp3Q== +zksync-ethers@6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/zksync-ethers/-/zksync-ethers-6.3.0.tgz#604c57250974ccad121510a2c84c1dd8b990722f" + integrity sha512-ApQIJSFevxFNVQTO1MxkmXxmx9N0qZHNvMzjFvu5v40QPFGkpUt09pY/WHy3b5BlsXzybQ3q2YnHaz/c/TgilA==