Skip to content

Commit

Permalink
encode op for registerUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ho committed Dec 3, 2021
1 parent 3c5f905 commit 1eae2e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contracts/FluiDex.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1eae2e8

Please sign in to comment.