streamingfast / substreams-ethereum

Substreams development kit for Ethereum chains, contains Firehose Block model and helpers as well as utilities for Ethereum ABI encoding/decoding.
Apache License 2.0
22 stars 9 forks source link

Properly converting an `int` by using `BigInt` lib #6

Closed Eduard-Voiculescu closed 2 years ago

Eduard-Voiculescu commented 2 years ago

matching on int and overloading the decoding which took the int and converted it into a U256 from ethereum. Big int will give us the correct value for the int as we want it to overflow to a negative value

maoueh commented 2 years ago

Can you check the CI and I'm going to merge this.