From d59425d4fb1cc39668e17b399acbd40328bb7718 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Sat, 31 Oct 2026 13:25:38 +0100 Subject: [PATCH] test: pin packed hash256 for exactly 32 bytes of 0x and hex --- spec/eth/abi/packed/encoder_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/eth/abi/packed/encoder_spec.rb b/spec/eth/abi/packed/encoder_spec.rb index 0c057392..31fdf8f7 100644 --- a/spec/eth/abi/packed/encoder_spec.rb +++ b/spec/eth/abi/packed/encoder_spec.rb @@ -276,6 +276,7 @@ expect(Abi.solidity_packed ["bytes32"], ["0x" + "a" * 30]).to eq "0x" + "a" * 30 expect(Abi.solidity_packed ["bytes4"], ["0xab"]).to eq "0xab" expect(Abi.solidity_packed ["bytes2"], ["0x"]).to eq "0x" + expect(Abi.solidity_packed ["hash256"], ["0x" + "a" * 30]).to eq "0x" + "a" * 30 end it "keeps reading hex of 2N digits as hex" do