load_contract_code charges gas after loading the contract, it should first query its length, charge gas and only then load it in memory. Depending on storage implementation, this could be relevant since users may be able to perform costly actions without paying.
load_contract_code
charges gas after loading the contract, it should first query its length, charge gas and only then load it in memory. Depending on storage implementation, this could be relevant since users may be able to perform costly actions without paying.