It looks like
const entryKey = sha256ToField(
Buffer.concat([
l2Contract.address.toBuffer(),
new Fr(1).toBuffer(), // aztec version
contractInfo?.portalContractAddress.toBuffer32() ?? Buffer.alloc(32, 0),
new Fr(publicClient.chain.id).toBuffer(), // chain id
content.toBuffer(),
]),
);
expect(await outbox.read.contains([entryKey.toString()])).toBeFalsy();
Sometimes gives
FAIL src/e2e_cross_chain_messaging.test.ts (67.034 s)
end-to-end_1 | e2e_cross_chain_messaging
end-to-end_1 | ✕ Milestone 2: Deposit funds from L1 -> L2 and withdraw back to L1 (61093 ms)
end-to-end_1 |
end-to-end_1 | ● e2e_cross_chain_messaging › Milestone 2: Deposit funds from L1 -> L2 and withdraw back to L1
end-to-end_1 |
end-to-end_1 | AbiEncodingBytesSizeMismatchError: Size of bytes "0x87b065ec465f034bac51b947d33171d1a97fb0df571329ed81698bd5acdb12" (bytes31) does not match expected size (bytes32).
end-to-end_1 |
end-to-end_1 | Version: viem@0.3.14
end-to-end_1 |
end-to-end_1 | 165 | ]),
end-to-end_1 | 166 | );
end-to-end_1 | > 167 | expect(await outbox.read.contains([entryKey.toString()])).toBeFalsy();
end-to-end_1 | | ^
end-to-end_1 | 168 |
end-to-end_1 | 169 | logger('Send L2 tx to withdraw funds');
end-to-end_1 | 170 | const withdrawTx = l2Contract.methods.withdraw(withdrawAmount, ownerPub, ethAccount).send({ from: ownerAddress });
end-to-end_1 |
end-to-end_1 | at encodeBytes (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:214:11)
end-to-end_1 | at prepareParam (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:98:12)
end-to-end_1 | at prepareParams (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:65:25)
end-to-end_1 | at encodeAbiParameters (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:40:26)
end-to-end_1 | at encodeFunctionData (../../node_modules/viem/src/utils/abi/encodeFunctionData.ts:41:9)
end-to-end_1 | at readContract (../../node_modules/viem/src/actions/public/readContract.ts:78:20)
end-to-end_1 | at Proxy. (../../node_modules/viem/src/actions/getContract.ts:413:22)
end-to-end_1 | at Object. (e2e_cross_chain_messaging.test.ts:167:30)
It looks like
Sometimes gives
FAIL src/e2e_cross_chain_messaging.test.ts (67.034 s)
end-to-end_1 | e2e_cross_chain_messaging
end-to-end_1 | ✕ Milestone 2: Deposit funds from L1 -> L2 and withdraw back to L1 (61093 ms)
end-to-end_1 |
end-to-end_1 | ● e2e_cross_chain_messaging › Milestone 2: Deposit funds from L1 -> L2 and withdraw back to L1
end-to-end_1 |
end-to-end_1 | AbiEncodingBytesSizeMismatchError: Size of bytes "0x87b065ec465f034bac51b947d33171d1a97fb0df571329ed81698bd5acdb12" (bytes31) does not match expected size (bytes32).
end-to-end_1 |
end-to-end_1 | Version: viem@0.3.14
end-to-end_1 |
end-to-end_1 | 165 | ]),
end-to-end_1 | 166 | );
end-to-end_1 | > 167 | expect(await outbox.read.contains([entryKey.toString()])).toBeFalsy();
end-to-end_1 | | ^
end-to-end_1 | 168 |
end-to-end_1 | 169 | logger('Send L2 tx to withdraw funds');
end-to-end_1 | 170 | const withdrawTx = l2Contract.methods.withdraw(withdrawAmount, ownerPub, ethAccount).send({ from: ownerAddress });
end-to-end_1 |
end-to-end_1 | at encodeBytes (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:214:11)
end-to-end_1 | at prepareParam (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:98:12)
end-to-end_1 | at prepareParams (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:65:25)
end-to-end_1 | at encodeAbiParameters (../../node_modules/viem/src/utils/abi/encodeAbiParameters.ts:40:26)
end-to-end_1 | at encodeFunctionData (../../node_modules/viem/src/utils/abi/encodeFunctionData.ts:41:9)
end-to-end_1 | at readContract (../../node_modules/viem/src/actions/public/readContract.ts:78:20)
end-to-end_1 | at Proxy. (../../node_modules/viem/src/actions/getContract.ts:413:22)
end-to-end_1 | at Object. (e2e_cross_chain_messaging.test.ts:167:30)