Merge pull request #10815 from filecoin-project/10814-eip-1891

Add EIP-1898 support needed for The Graph compatibility
This commit is contained in:
Friðrik Ásmundsson
2023-06-23 08:29:45 +00:00
committed by GitHub
19 changed files with 330 additions and 141 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ var EvmCallSimulateCmd = &cli.Command{
From: &fromEthAddr,
To: &toEthAddr,
Data: params,
}, "")
}, ethtypes.NewEthBlockNumberOrHashFromPredefined("latest"))
if err != nil {
fmt.Println("Eth call fails, return val: ", res)
return err
@@ -518,7 +518,7 @@ var EvmGetBytecode = &cli.Command{
defer closer()
ctx := ReqContext(cctx)
code, err := api.EthGetCode(ctx, contractAddr, "latest")
code, err := api.EthGetCode(ctx, contractAddr, ethtypes.NewEthBlockNumberOrHashFromPredefined("latest"))
if err != nil {
return err
}