Compare commits

..

1 Commits

Author SHA1 Message Date
fe0dcf1765 feat: add height param to balanceOf call
* defaults to 'latest'
2022-11-18 16:51:24 +03:00
2 changed files with 3 additions and 4 deletions

View File

@@ -16,7 +16,6 @@ from chainlib.eth.tx import (
TxFormat,
)
from chainlib.jsonrpc import JSONRPCRequest
from chainlib.block import BlockSpec
from hexathon import (
add_0x,
strip_0x,
@@ -28,7 +27,7 @@ logg = logging.getLogger()
class ERC20(TxFactory):
def balance_of(self, contract_address, address, sender_address=ZERO_ADDRESS, id_generator=None, height=BlockSpec.LATEST):
def balance_of(self, contract_address, address, sender_address=ZERO_ADDRESS, id_generator=None, height=None):
j = JSONRPCRequest(id_generator)
o = j.template()
o['method'] = 'eth_call'

View File

@@ -1,6 +1,6 @@
[metadata]
name = eth-erc20
version = 0.5.2
version = 0.5.1
description = ERC20 interface and simple contract with deployment script that lets any address mint and gift itself tokens.
author = Louis Holbrook
author_email = dev@holbrook.no
@@ -20,7 +20,7 @@ classifiers =
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Topic :: Internet
#Topic :: Blockchain :: EVM
license = AGPLv3+
license = OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
licence_files =
LICENSE