Transaction #18168

Hash f67f00f5a6e3727cecc96d73e35a9673ac21577051353bbf5e80048e39ddc36f
Status Failed
Error Message AssertionError('Name must be lowercase!',)
Timestamp 325 days ago - 6/14/2023, 9:37:53 PM UTC+0
Block 18168
Stamps Used 4
Burned Fee 0.00023669 TAU
From ca53afc76e361f6a2344bb62178bdb3ed04a7347b0a7977ceaa4516ace8b26f4 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 0
Processor a04b5891ef8cd27095373a4f75b899ec2bc0883c02e506a6a5b55b491998cc3f
Signature 157ac81e8f8c459916b693d2781fef1a3ab7b748ef7f23882da1e54eed6838587b75325f6e410eb3a7346bb504a75a0cf1e30573c582ae178c327b9d80fc2e04
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code # LST001 balances = Hash(default_value=0) # LST002 metadata = Hash() @construct def seed(name, symbol): # LST001 - MINT SUPPLY to wallet that submits the contract balances[ctx.caller] = 1_000_000_000 # LST002 metadata['token_name'] = name metadata['token_symbol'] = symbol metadata['operator'] = ctx.caller # LST002 @export def change_metadata(key: str, value: Any): assert ctx.caller == metadata['operator'], 'Only operator can set metadata!' metadata[key] = value # LST001 @export def transfer(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' assert balances[ctx.caller] >= amount, 'Not enough coins to send!' balances[ctx.caller] -= amount balances[to] += amount # LST001 @export def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' balances[ctx.caller, to] += amount # LST001 @export def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' assert balances[main_account, ctx.caller] >= amount, 'Not enough coins approved to send! You have {} and are trying to spend {}'\ .format(balances[main_account, ctx.caller], amount) assert balances[main_account] >= amount, 'Not enough coins to send!' balances[main_account, ctx.caller] -= amount balances[main_account] -= amount balances[to] += amount
constructor_args {"name":"gtokenv1","symbol":"gtv1"}
name con_new_guildTokenV2

State Changes

Contract currency
Variable balances
Key ca53afc76e361f6a2344bb62178bdb3ed04a7347b0a7977ceaa4516ace8b26f4
New Value 815806.275609475853313919723060879627