Skip to content

Commit

Permalink
unused IsOwner removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lukozill committed Apr 15, 2024
1 parent 1b35173 commit add428a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions reference-contracts/FungibleToken-Burnable.scilla
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type Error =
| CodeIsSender
| CodeInsufficientFunds
| CodeInsufficientAllowance
| CodeNotOwner

let make_error =
fun (result : Error) =>
Expand All @@ -31,7 +30,6 @@ let make_error =
| CodeIsSender => Int32 -1
| CodeInsufficientFunds => Int32 -2
| CodeInsufficientAllowance => Int32 -3
| CodeNotOwner => Int32 -4
end
in
{ _exception : "Error"; code : result_code }
Expand Down Expand Up @@ -82,16 +80,6 @@ procedure ThrowError(err : Error)
throw e
end

procedure IsOwner(address: ByStr20)
is_owner = builtin eq contract_owner address;
match is_owner with
| True =>
| False =>
err = CodeNotOwner;
ThrowError err
end
end

procedure IsNotSender(address: ByStr20)
is_sender = builtin eq _sender address;
match is_sender with
Expand Down
1 change: 0 additions & 1 deletion tests/zrc2/fungible-token-burnable/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const FungibleBurnableToken_ERROR = {
CodeIsSender: -1,
CodeInsufficientFunds: -2,
CodeInsufficientAllowance: -3,
CodeNotOwner: -4
};

export const TOKEN_NAME = "TEST";
Expand Down

0 comments on commit add428a

Please sign in to comment.