From 1eae2e8b2d7c32f36b200f7ab51124dd83f1f4f2 Mon Sep 17 00:00:00 2001 From: Ho Date: Fri, 3 Dec 2021 16:36:33 +0800 Subject: [PATCH] encode op for registerUser --- contracts/FluiDex.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contracts/FluiDex.sol b/contracts/FluiDex.sol index 522f545..3772765 100644 --- a/contracts/FluiDex.sol +++ b/contracts/FluiDex.sol @@ -212,6 +212,17 @@ contract FluiDexDemo is bjjPubkey: bjjPubkey }); userBjjPubkeyToUserId[bjjPubkey] = userId; + + Operations.Registry memory op = Operations.Registry({ + accountId: userId, + l2key: bjjPubkey + }); + + addPriorityRequest( + Operations.OpType.Registry, + Operations.writeRegistryPubdataForPriorityQueue(op) + ); + emit RegisterUser(ethAddr, userId, bjjPubkey); }