-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
Cargo.toml
Outdated
@@ -63,12 +63,12 @@ tracing-subscriber = "0.3" | |||
|
|||
|
|||
# Stable FVM dependencies from crates.io | |||
fvm = { version = "3.4", default-features = false } # no opencl feature or it fails on CI | |||
fvm = { version = "=3.3", default-features = false } # no opencl feature or it fails on CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have use ~3.3
but I doubt they will release patches retrospectively so it's okay.
docs/running.md
Outdated
We can try query the chain id by: | ||
```shell | ||
curl -X POST -i -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":0,"method":"eth_chainId","params":[]}' http://localhost:8545 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to mention it at the bottom of the doc that together with this container we can run the ethers
example as well to see a fully Ethereum compliant interaction with the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cryptoAtwill, do you mind picking up this one?
Sorry, folks. I didn't know this PR was already a thing and I was working on this same branch to build upon @cryptoAtwill changes to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call will need this fix as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woot!
Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
* add some traces * improve gas estimation logic * clean comments * fix linter * remove unused println * FM-163: address review and prevent panic errors * FIX: make linter happy * FM-163: clean code and finish review * FM-163: rm prints * FM: add transaction compat to call query (#170) * FM-163: modify cache semantics in call * FM-163: fix gas_fee_cap and add fvm settings to config * FM-163: fix use_cache and config --------- Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
When sending transactions, we cannot estimate gas due to invalid serialisation error. This is because
ethers-rust
requires thetransaction type
to be zero padded hex string while hardhat does not enforce zero padding.We propose a temporary solution as follows:
Since we only use
Eip1559TransactionRequest
, we created a newTypedTransaction
that uses onlyEip1559TransactionRequest
. When deserializing, we use alias that handles both zero padding and non zero padding.See gakonst/ethers-rs#2518 for
ethers
fix for this issue.