From 8da81cea5316c2df210d9ba6decd7a5e70fb628d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 5 Apr 2024 00:22:07 +0200 Subject: [PATCH] EIP-152: Fix reference test The solidity example with the reference test of https://datatracker.ietf.org/doc/html/rfc7693#appendix-A is at least confusing because it declares values of type `bytes8` using a literal of length of 4 bytes. --- EIPS/eip-152.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-152.md b/EIPS/eip-152.md index 80aa7085c3dbd..2762bfcff3e54 100644 --- a/EIPS/eip-152.md +++ b/EIPS/eip-152.md @@ -80,8 +80,8 @@ function callF() public view returns (bytes32[2] memory) { m[3] = hex"0000000000000000000000000000000000000000000000000000000000000000"; bytes8[2] memory t; - t[0] = hex"03000000"; - t[1] = hex"00000000"; + t[0] = hex"0300000000000000"; + t[1] = hex"0000000000000000"; bool f = true;