diff --git a/convex-core/src/main/cvx/convex/fungible.cvx b/convex-core/src/main/cvx/convex/fungible.cvx index a8c7c5a61..0857d7f29 100644 --- a/convex-core/src/main/cvx/convex/fungible.cvx +++ b/convex-core/src/main/cvx/convex/fungible.cvx @@ -42,7 +42,7 @@ (defn burn ^{:callable? true} [amount] - (when-not (trust/trusted? minter *caller*) + (when-not (trust/trusted? minter *caller* :burn) (fail :TRUST "No rights to burn")) (let [amount (int amount) bal (balance *caller*)] @@ -60,7 +60,7 @@ (defn mint ^{:callable? true} [amount] - (when-not (trust/trusted? minter *caller*) + (when-not (trust/trusted? minter *caller* :mint) (fail :TRUST "No rights to mint")) (let [amount (int amount) new-supply (+ supply amount)