From add428a5c555fb122abc6e229b807993df438726 Mon Sep 17 00:00:00 2001 From: lukozill Date: Mon, 15 Apr 2024 16:18:42 +0200 Subject: [PATCH] unused IsOwner removed --- reference-contracts/FungibleToken-Burnable.scilla | 12 ------------ tests/zrc2/fungible-token-burnable/config.ts | 1 - 2 files changed, 13 deletions(-) diff --git a/reference-contracts/FungibleToken-Burnable.scilla b/reference-contracts/FungibleToken-Burnable.scilla index 381dc6c84..2446c3714 100644 --- a/reference-contracts/FungibleToken-Burnable.scilla +++ b/reference-contracts/FungibleToken-Burnable.scilla @@ -22,7 +22,6 @@ type Error = | CodeIsSender | CodeInsufficientFunds | CodeInsufficientAllowance -| CodeNotOwner let make_error = fun (result : Error) => @@ -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 } @@ -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 diff --git a/tests/zrc2/fungible-token-burnable/config.ts b/tests/zrc2/fungible-token-burnable/config.ts index f6a345eb1..8f90646e9 100644 --- a/tests/zrc2/fungible-token-burnable/config.ts +++ b/tests/zrc2/fungible-token-burnable/config.ts @@ -10,7 +10,6 @@ export const FungibleBurnableToken_ERROR = { CodeIsSender: -1, CodeInsufficientFunds: -2, CodeInsufficientAllowance: -3, - CodeNotOwner: -4 }; export const TOKEN_NAME = "TEST";