Skip to content

Commit 55d1425

Browse files
fix(eip-7708): correct EIP7708_BURN_TOPIC constant (wrong last 8 bytes)
The last 8 bytes of EIP7708_BURN_TOPIC were 717fce85f713ab57 instead of 71a0fdb75d397ca5. keccak256("Burn(address,uint256)") = 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5 All Burn logs emitted with the wrong constant would be unrecognizable by any conforming indexer or client. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2945ad4 commit 55d1425

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/primitives/main.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ pub const EIP7708_TRANSFER_TOPIC: Hash = [32]u8{
127127
};
128128

129129
/// EIP-7708: keccak256("Burn(address,uint256)")
130+
/// = 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5
130131
pub const EIP7708_BURN_TOPIC: Hash = [32]u8{
131132
0xcc, 0x16, 0xf5, 0xdb, 0xb4, 0x87, 0x32, 0x80,
132133
0x81, 0x5c, 0x1e, 0xe0, 0x9d, 0xbd, 0x06, 0x73,
133134
0x6c, 0xff, 0xcc, 0x18, 0x44, 0x12, 0xcf, 0x7a,
134-
0x71, 0x7f, 0xce, 0x85, 0xf7, 0x13, 0xab, 0x57,
135+
0x71, 0xa0, 0xfd, 0xb7, 0x5d, 0x39, 0x7c, 0xa5,
135136
};
136137

137138
/// The Keccak-256 hash of the empty string "".

0 commit comments

Comments
 (0)