You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I noticed a critical bug in the Pascaligo FA1.2 example contract:
unction isAllowed ( const src : address ; const value : amt ; var s : contract_storage) : bool is
begin
var allowed: bool := False;
if sender =/= source then block {
const src: account = get_force(src, s.ledger);
const allowanceAmount: amt = get_force(sender, src.allowances);
allowed := allowanceAmount >= value;
};
else allowed := True;
end with allowed
The code sender =/= source should read sender =/= src.
(I will attempt to get LIGO to finally remove the terrible source operator...)
The text was updated successfully, but these errors were encountered:
Hello, I noticed a critical bug in the Pascaligo FA1.2 example contract:
The code
sender =/= source
should readsender =/= src
.(I will attempt to get LIGO to finally remove the terrible
source
operator...)The text was updated successfully, but these errors were encountered: