Skip to content

Commit c6c9199

Browse files
committed
revert: send function change
1 parent 1b2c769 commit c6c9199

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Token/Transaction.juvix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ send (self : KeyPair) (token : Resource) (amount : Nat) (receiver : PublicKey)
141141
let
142142
myself : PublicKey := KeyPair.pubKey self;
143143
availableAmount : Nat := Resource.quantity token;
144-
in if
145-
| not (isTransferable token) := throw mkNonTransferableError
146-
| else :=
147-
case (compare availableAmount amount) of
144+
in case (compare availableAmount amount) of
148145
| LT := throw mkInsufficientQuantityError@{limit := availableAmount; actual := amount}
149146
| EQ := transfer self token receiver
150147
| GT :=

0 commit comments

Comments
 (0)