Refactor ethCall method to rpcCall

This commit is contained in:
Martin Boehm
2024-10-10 00:58:19 +02:00
parent 059086cd3d
commit 76664cdbf3
14 changed files with 57 additions and 57 deletions

View File

@@ -134,8 +134,8 @@ func (c *fakeBlockChainEthereumType) EthereumTypeGetErc20ContractBalance(addrDes
return big.NewInt(1000000000 + int64(addrDesc[0])*1000 + int64(contractDesc[0])), nil
}
// EthereumTypeEthCall calls eth_call with given data and to address
func (c *fakeBlockChainEthereumType) EthereumTypeEthCall(data, to, from string) (string, error) {
// EthereumTypeRpcCall calls eth_call with given data and to address
func (c *fakeBlockChainEthereumType) EthereumTypeRpcCall(data, to, from string) (string, error) {
return data + "abcd", nil
}