Skip to content

Commit

Permalink
Merge pull request #12 from guanqun/fix-hexbyte-serializable
Browse files Browse the repository at this point in the history
Fix hexbyte serializable
  • Loading branch information
guanqun authored May 24, 2021
2 parents 38eec0e + 9212fe3 commit ca95da4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion async_web3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2.1"
__version__ = "0.2.2"

from .main import AsyncWeb3

Expand Down
2 changes: 1 addition & 1 deletion async_web3/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ async def transact(self, *args: Tuple) -> Any:
Object representing the broadcasted transaction.
"""
signed_txn = self.build_transaction(*args)
return await self.web3.send_raw_transaction(signed_txn.rawTransaction)
return await self.web3.send_raw_transaction(signed_txn.rawTransaction.hex())

def decode_input(self, hexstr: str) -> List:
"""
Expand Down
1 change: 1 addition & 0 deletions newsfragments/11.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the sendRawTransaction not serializable error.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "async-web3"
version = "0.2.1"
version = "0.2.2"
description = ""
authors = ["Guanqun Lu <[email protected]>"]

Expand Down

0 comments on commit ca95da4

Please sign in to comment.