You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to know gatchain evm support EIP-1898 ?
i want to fetch data from gatechain smart contract in subgraph but it is getting faild.
This is the function in subgraph:
export function fetchTokenSymbol(tokenAddress: Address): string {
// hard coded override
if (tokenAddress.toHexString() == ETH_ADDRESS) {
return 'ETH'
}
if (tokenAddress.toHexString() == '0xe0b7927c4af23765cb51314a0e0521a9645f0e2a') {
return 'DGD'
}
let contract = ERC20.bind(tokenAddress)
let contractSymbolBytes = ERC20SymbolBytes.bind(tokenAddress)
// try types string and bytes32 for symbol
let symbolValue = 'unknown'
let symbolResult = contract.try_symbol()
if (symbolResult.reverted) {
let symbolResultBytes = contractSymbolBytes.try_symbol()
if (!symbolResultBytes.reverted) {
// for broken pairs that have no symbol function exposed
if (!isNullEthValue(`0x${symbolResultBytes.value.toHexString()}`)) {
symbolValue = symbolResultBytes.value.toString()
}
}
} else {
symbolValue = symbolResult.value
}
return symbolValue
}
Continuously getting this Error on the graph node :
one }))), block_hash: 0xdc84e222308f0c3c0e96c5b96d769de105a9598d8066b5b45a125f73c85b6315, block_number: 2378311, sgd: 1, subgraph_id: QmSG5uSRty91BdhLr2bL7eGvw3LrQ48XfH4jqySTBRwknm, component: SubgraphInstanceManager
graph-node_1 | Jul 28 10:31:21.299 INFO Done processing trigger, gas_used: 0, data_source: Factory, handler: handleNewPair, total_ms: 3525, transaction: 0xa7ab…d918, address: 0xb4bc…c854, signature: Deployed(indexed address,indexed address,indexed address), block_hash: 0xdc84e222308f0c3c0e96c5b96d769de105a9598d8066b5b45a125f73c85b6315, block_number: 2378311, sgd: 1, subgraph_id: QmSG5uSRty91BdhLr2bL7eGvw3LrQ48XfH4jqySTBRwknm, component: SubgraphInstanceManager
graph-node_1 | Jul 28 10:31:21.300 INFO Possible reorg detected, retrying, error: failed to process trigger: block #2378311 (0xdc84…6315), transaction a7ab894749a2eafac1e8939caa6782794c4c5433b7ad1f7354213f3ae7a4d918: Ethereum node returned an error when calling function "symbol" of contract "ERC20": RPC error: Error { code: InvalidParams, message: "invalid argument 1: hex string without 0x prefix", data: None }
i want to know gatchain evm support EIP-1898 ?
i want to fetch data from gatechain smart contract in subgraph but it is getting faild.
This is the function in subgraph:
Continuously getting this Error on the graph node :
one }))), block_hash: 0xdc84e222308f0c3c0e96c5b96d769de105a9598d8066b5b45a125f73c85b6315, block_number: 2378311, sgd: 1, subgraph_id: QmSG5uSRty91BdhLr2bL7eGvw3LrQ48XfH4jqySTBRwknm, component: SubgraphInstanceManager
graph-node_1 | Jul 28 10:31:21.299 INFO Done processing trigger, gas_used: 0, data_source: Factory, handler: handleNewPair, total_ms: 3525, transaction: 0xa7ab…d918, address: 0xb4bc…c854, signature: Deployed(indexed address,indexed address,indexed address), block_hash: 0xdc84e222308f0c3c0e96c5b96d769de105a9598d8066b5b45a125f73c85b6315, block_number: 2378311, sgd: 1, subgraph_id: QmSG5uSRty91BdhLr2bL7eGvw3LrQ48XfH4jqySTBRwknm, component: SubgraphInstanceManager
graph-node_1 | Jul 28 10:31:21.300 INFO Possible reorg detected, retrying, error: failed to process trigger: block #2378311 (0xdc84…6315), transaction a7ab894749a2eafac1e8939caa6782794c4c5433b7ad1f7354213f3ae7a4d918: Ethereum node returned an error when calling function "symbol" of contract "ERC20": RPC error: Error { code: InvalidParams, message: "invalid argument 1: hex string without 0x prefix", data: None }
This issue is reported here in the graph node github : graphprotocol/graph-node#2319
this is the answer please some one help me out how can i found such gatechain RPC node which support EIP-1898.
Please someone help me out in this.
The text was updated successfully, but these errors were encountered: