Normalize receipt in Tx apply
This commit is contained in:
parent
b0779aa9f3
commit
3e3a351c2d
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Chainlib is a prototype attempt at writing a generalized code library structure in python3 for concepts that are valid across blockchains, either within the same chain technology or across them. If useful and/or successful, it should be considered ported to a more performant language (rust?).
|
Chainlib is a prototype attempt at writing a generalized code library structure in python3 for concepts that are valid across blockchains, either within the same chain technology or across them. If useful and/or successful, it should be considered ported to a more performant language (rust?).
|
||||||
|
|
||||||
It is primarily aimed at console-environment development.
|
It is primarily aimed at (possibly threaded) console-environment development.
|
||||||
|
|
||||||
It aims to give fine-grained control and transparency to all operations and transformations.
|
It aims to give fine-grained control and transparency to all operations and transformations.
|
||||||
|
|
||||||
|
@ -354,6 +354,7 @@ class Tx:
|
|||||||
|
|
||||||
|
|
||||||
def apply_receipt(self, rcpt):
|
def apply_receipt(self, rcpt):
|
||||||
|
rcpt = self.src_normalize(rcpt)
|
||||||
logg.debug('rcpt {}'.format(rcpt))
|
logg.debug('rcpt {}'.format(rcpt))
|
||||||
try:
|
try:
|
||||||
status_number = int(rcpt['status'], 16)
|
status_number = int(rcpt['status'], 16)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib
|
name = chainlib
|
||||||
version = 0.0.3rc1
|
version = 0.0.3rc2
|
||||||
description = Generic blockchain access library and tooling
|
description = Generic blockchain access library and tooling
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user