Skip to content

Conversation

@Valter4578
Copy link
Contributor

yaroslavyaroslav and others added 14 commits November 30, 2021 12:21
This reverts commit 8a1ef84.
- Add `decodeHex<T: DecodableFromHex>(to type: T.Type, key: KeyedDecodingContainer<K>.Key) throws -> T` to initialize `Block` it's fields.
- Temporary rename `_decodeHexToData<T>(_ container: KeyedDecodingContainer<T>, key: KeyedDecodingContainer<T>.Key, allowOptional:Bool = false) throws -> Data?` method which used in other Structures initialization.
- Refactor Block `init(from decoder: Decoder) throws`.
- Refactor `EthereumTransaction` to make it more swifty.
- Add required constants to Web3
- Add public Web3 extension with `verifyEip1559Block` and `calcBaseFee` methods
- Add draft ChainVersion enum to differ Blockchain versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants