Eth JSON-RPC: use ToFilecoinAddress() to get f4 addr and validate v sig + cleanups (#9970)
Co-authored-by: raulk <raul@protocol.ai>
This commit is contained in:
@@ -375,10 +375,10 @@ func init() {
|
||||
|
||||
addExample(ethint)
|
||||
addExample(ðint)
|
||||
ethaddr, _ := ethtypes.EthAddressFromHex("0x5CbEeCF99d3fDB3f25E309Cc264f240bb0664031")
|
||||
ethaddr, _ := ethtypes.ParseEthAddress("0x5CbEeCF99d3fDB3f25E309Cc264f240bb0664031")
|
||||
addExample(ethaddr)
|
||||
addExample(ðaddr)
|
||||
ethhash, _ := ethtypes.NewEthHashFromCid(c)
|
||||
ethhash, _ := ethtypes.EthHashFromCid(c)
|
||||
addExample(ethhash)
|
||||
addExample(ðhash)
|
||||
|
||||
@@ -387,10 +387,10 @@ func init() {
|
||||
|
||||
addExample(&uuid.UUID{})
|
||||
|
||||
filterid, _ := ethtypes.NewEthHashFromHex("0x5CbEeC012345673f25E309Cc264f240bb0664031")
|
||||
filterid, _ := ethtypes.ParseEthHash("0x5CbEeC012345673f25E309Cc264f240bb0664031")
|
||||
addExample(ethtypes.EthFilterID(filterid))
|
||||
|
||||
subid, _ := ethtypes.NewEthHashFromHex("0x5CbEeCF99d3fDB301234567c264f240bb0664031")
|
||||
subid, _ := ethtypes.ParseEthHash("0x5CbEeCF99d3fDB301234567c264f240bb0664031")
|
||||
addExample(ethtypes.EthSubscriptionID(subid))
|
||||
|
||||
pstring := func(s string) *string { return &s }
|
||||
|
||||
Reference in New Issue
Block a user