Skip to content

Commit 0b97fae

Browse files
author
Ho
committed
encode op for registerUser
1 parent 6741026 commit 0b97fae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contracts/FluiDex.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,18 @@ contract FluiDexDemo is
194194
bjjPubkey: bjjPubkey
195195
});
196196
userBjjPubkeyToUserId[bjjPubkey] = userId;
197+
198+
Operations.Registry memory op = Operations.Registry({
199+
accountId: userId,
200+
l2key: bjjPubkey
201+
});
202+
203+
addPriorityRequest(
204+
Operations.OpType.Registry,
205+
Operations.writeRegistryPubdataForPriorityQueue(op)
206+
);
207+
208+
emit RegisterUser(ethAddr, userId, bjjPubkey);
197209
}
198210

199211
function getBlockStateByBlockId(uint256 _block_id)

0 commit comments

Comments
 (0)