Added ABI printout

This commit is contained in:
vub 2017-03-24 01:53:49 -04:00
parent 5335845163
commit eb049462e8
2 changed files with 2 additions and 1 deletions

View File

@ -57,5 +57,5 @@ def submit(addr: address):
self.approved_addrs[addr] = 1 self.approved_addrs[addr] = 1
return(1: bool) return(1: bool)
def check(addr: address): def const check(addr: address):
return(self.approved_addrs[addr]:bool) return(self.approved_addrs[addr]:bool)

View File

@ -120,3 +120,4 @@ print('Send %d wei to %s' % (t.startgas * t.gasprice,
print('Contract address: 0x'+utils.encode_hex(utils.mk_contract_address(t.sender, 0))) print('Contract address: 0x'+utils.encode_hex(utils.mk_contract_address(t.sender, 0)))
print('Code: 0x'+utils.encode_hex(rlp.encode(t))) print('Code: 0x'+utils.encode_hex(rlp.encode(t)))
print('ABI declaration: '+repr(serpent.mk_full_signature('check_for_impurity.se')))