Skip to content

Commit

Permalink
refactor(types): add repr(u8) for ZkLinkTxType
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiemOfSoul committed Jun 6, 2024
1 parent 1a6973e commit 369783b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/src/tx_type/zklink_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use wasm_bindgen::prelude::wasm_bindgen;
/// A set of L2 transaction type supported by the zklink network.
#[wasm_bindgen]
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)]
#[repr(u8)]
pub enum ZkLinkTxType {
Deposit = 0x01,
FullExit = 0x05,
Expand Down

0 comments on commit 369783b

Please sign in to comment.