Skip to content

Commit a1f4b13

Browse files
author
CloudLobster
committed
fix: generate unique emailId for general bonds (was using all-zeros, causing revert on second deposit)
1 parent 17e4089 commit a1f4b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/pages/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3064,7 +3064,7 @@ function Attention({ auth }: { auth: AuthState }) {
30643064
const { keccak256, toBytes } = await import('viem');
30653065
const emailIdBytes = depEmailId
30663066
? keccak256(toBytes(depEmailId))
3067-
: '0x0000000000000000000000000000000000000000000000000000000000000000' as `0x${string}`;
3067+
: keccak256(toBytes(`bond-${Date.now()}-${Math.random()}`));
30683068

30693069
try {
30703070
// Get recipient wallet

0 commit comments

Comments
 (0)