Transaction #105560

Hash c805416b251b8bbb81699e22c249de0f5fbda95232f67521d66b5a8579e09128
Status Failed
Error Message AssertionError('Name must be lowercase!',)
Timestamp 1062 days ago - 6/19/2021, 3:09:11 AM UTC+0
Block 104075
Stamps Used 4
Burned Fee 0.00061538 TAU
From 3d9511d7c6a180ebd5bdfeb4169293c64cb6db3b33ae115919976a6fbe87b9fd 
Contract Name submission
Function Name submit_contract

Additional Info
SubBlock Number 0
Nonce 0
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature 9bc406aebdc22a2f1498cfabd33f35d657439a97616c445c970ed0723949ef3688da7c88010ab2592bb03fa7f425d8237724acead0a80ec61c33a3974f3a920e
Stamps Supplied 500
Stamps per TAU 65

Kwargs

code # LST001 balances = Hash(default_value=0) # LST002 metadata = Hash() @construct def seed(): # LST001 - MINT SUPPLY to wallet that submits the contract balances[ctx.caller] = 188_000_000 # LST002 metadata['token_name'] = "Beer" metadata['token_symbol'] = "BEER" 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
name con_Beer_contract

State Changes

Contract currency
Variable balances
Key 3d9511d7c6a180ebd5bdfeb4169293c64cb6db3b33ae115919976a6fbe87b9fd
New Value 19.93846153846153846