diff --git a/code/webauthn/contracts/contracts/Account.sol b/code/webauthn/contracts/contracts/Account.sol index b3dedff..7008b56 100644 --- a/code/webauthn/contracts/contracts/Account.sol +++ b/code/webauthn/contracts/contracts/Account.sol @@ -284,7 +284,7 @@ contract Account is IAccount, IERC1271 { // ANCHOR_END: callVerifier function extractChallengeFromClientData(bytes memory clientDataJSON) public pure returns (string memory) { - bytes memory challengeSlice = slice(clientDataJSON, 36, 58); + bytes memory challengeSlice = slice(clientDataJSON, 36, 88); string memory challenge = string(challengeSlice); return challenge; } @@ -319,7 +319,7 @@ contract Account is IAccount, IERC1271 { if (base64Bytes[i] == '/') base64Bytes[i] = '_'; } - return string(slice(base64Bytes, 0, 58)); + return string(base64Bytes); } fallback() external { diff --git a/content/tutorials/erc20-paymaster/10.index.md b/content/tutorials/erc20-paymaster/10.index.md index c40dbb2..db7b5ed 100644 --- a/content/tutorials/erc20-paymaster/10.index.md +++ b/content/tutorials/erc20-paymaster/10.index.md @@ -54,7 +54,7 @@ Next, navigate into the project directory and install the dependencies: :test-action{actionId="npm-install"} ```sh -cd custom-paymaster-tutorial && npm install --force +cd custom-paymaster-tutorial && npm install ``` :test-action{actionId="wait-for-install"} diff --git a/tests/configs/daily-spend-limit.ts b/tests/configs/daily-spend-limit.ts index 8f42cc2..2419d7e 100644 --- a/tests/configs/daily-spend-limit.ts +++ b/tests/configs/daily-spend-limit.ts @@ -3,7 +3,7 @@ import type { IStepConfig } from '../utils/types'; export const steps: IStepConfig = { 'initialize-project': { action: 'runCommand', - prompts: 'Private key of the wallet: |npm: ', + prompts: 'Private key of the wallet: |❯ npm: ', }, 'wait-for-init': { action: 'wait', diff --git a/tests/configs/erc20-paymaster.ts b/tests/configs/erc20-paymaster.ts index f070a87..5a3ebf8 100644 --- a/tests/configs/erc20-paymaster.ts +++ b/tests/configs/erc20-paymaster.ts @@ -3,7 +3,7 @@ import type { IStepConfig } from '../utils/types'; export const steps: IStepConfig = { 'initialize-hardhat-project': { action: 'runCommand', - prompts: 'Private key of the wallet:0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110|npm: ', + prompts: 'Private key of the wallet:0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110|❯ npm: ', }, 'wait-for-init': { action: 'wait',