mirror of
https://github.com/status-im/nim-web3.git
synced 2026-08-27 10:31:06 +00:00
* newWeb3: Do not silence exceptions, let the function raise.
* Fix raises syntax.
* Add esplicit `(raises: [CatchableError])` to `async`.
Even though this is equivalent to `{.async.}`, the intention is more
clear this way.
* Remove discard from future.
Discarding futures is discouraged:
https://status-im.github.io/nim-chronos/tips.html#discard
* Replace await with asyncSpawn.
It was discard earlier, asyncSpawn is Chronos's replacement for discard.
* Add web3-specific exceptions.
* Raise specific exceptions.
* Require json_rpc#head.
Temporary, until the new release is cut.
* CI: Add Nim 2.4 to matrix.
* Update json_rpc requirement.
* Update web3.nim
Co-authored-by: Jacek Sieka <jacek@status.im>
* Avoid iterating over changing value.
* Ensure that only Web3Error exceptions are raised from web3.
Note: SerializationError from json_serialization is caught and re-raised
as web3.SerializationError.
* Rename SerializationError to AbiSerializationError.
* Declare only Web3Error as raised.
Instead of specific Web3Error subclass exceptions.
---------
Co-authored-by: Jacek Sieka <jacek@status.im>