owlprotocol / web3-redux

Web3 Redux Library
6 stars 1 forks source link

Account code `web3.eth.getCode` #70

Closed leovigna closed 2 years ago

leovigna commented 2 years ago

Integrate https://web3js.readthedocs.io/en/v1.5.2/web3-eth.html#getcode on the Account model. This can then be used to check if there is a smart contract at the address. We us the Account model as account's simply represent an address (EOA or smart contract) as opposed to Contract model which is for smart contracts only.

leovigna commented 2 years ago

/cib

github-actions[bot] commented 2 years ago

Branch issue-70 created! Clone with: git fetch && git checkout --track origin/issue-70 Rebase develop branch changes with: git checkout issue-70 && git rebase develop