Replies: 1 comment
-
// eth_call resp for contract.name()
{
"jsonrpc": "2.0",
"result": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000f303030363634383933362e316563370000000000000000000000000000000000",
"id": 44
}
// which decodes to "0006648936.1ec7" as mentioned in OP I don't think this is an issue with ethers.js as, the response from node is in that way. You can reach out to Moonbeam support or Tether support regarding this. Some info:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
5.6.9
Search Terms
decode string, decode contract call result
Describe the Problem
Hi!
I have problem with some contracts in Moonbeam network in some blocks range (in earlier blocks issue can occur but later not). For instance:
But later (sort of after 400000) this contract returns
name() -> Tether USD
. Probably it's a problem with specific contracts but I'm trying figure out how to decode this weird string value (0006648936.1ec7
) and is there some function inethers
which can help me with this.Code Snippet
Contract ABI
Errors
No response
Environment
node.js (v12 or newer)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions