mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
fix(cw_evm): add missing chainId
fix(cw_core): solana rpc fix
This commit is contained in:
parent
460adb5370
commit
4a2aa28e6a
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ class SolanaRPCHTTPService implements SolanaJSONRPCService {
|
|||
[Duration? timeout]) async {
|
||||
final response = await ProxyWrapper().post(
|
||||
clearnetUri: Uri.parse(url),
|
||||
body: json.encode(params.toRequestBody()),
|
||||
body: params.toRequestBody(),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
|
|
|
@ -20,6 +20,7 @@ class EthereumClient extends EVMChainClient {
|
|||
{String? contractAddress}) async {
|
||||
try {
|
||||
final response = await client.get(Uri.https("api.etherscan.io", "/v2/api", {
|
||||
"chainid": "$chainId",
|
||||
"module": "account",
|
||||
"action": contractAddress != null ? "tokentx" : "txlist",
|
||||
if (contractAddress != null) "contractaddress": contractAddress,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue