From c3cdffc1de0873ad72c8ded06fe196f0996bd208 Mon Sep 17 00:00:00 2001 From: panindustrial-dev Date: Wed, 8 May 2024 20:18:24 -0500 Subject: [PATCH] update btyepes --- src/lib.mo | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib.mo b/src/lib.mo index 4bd92b0..33505e4 100644 --- a/src/lib.mo +++ b/src/lib.mo @@ -221,7 +221,8 @@ module { public func supported_blocktypes() : [(Text,Text)] { return[ - ("37appr","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), + ("37approve","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), + ("37approve_coll","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), ("37revoke","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), ("37revoke_coll","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), ("37xfer","https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-37/ICRC-37.md"), @@ -1350,8 +1351,8 @@ module { case(_){}; }; }; - Vec.add(trx,("op", #Text("37appr_coll"))); - Vec.add(trxtop,("btype", #Text("37appr_coll"))); + Vec.add(trx,("op", #Text("37approve_coll"))); + Vec.add(trxtop,("btype", #Text("37approve_coll"))); }; case(?token_id){ @@ -1367,8 +1368,8 @@ module { if(owner.subaccount != approval.from_subaccount) return (?token_id, #Err(#Unauthorized)); //from_subaccount must match owner; Vec.add(trx,("tid", #Nat(token_id))); - Vec.add(trx,("op", #Text("37appr"))); - Vec.add(trxtop,("btype", #Text("37appr"))); + Vec.add(trx,("op", #Text("37approve"))); + Vec.add(trxtop,("btype", #Text("37approve"))); }; };