llamafolio-api icon indicating copy to clipboard operation
llamafolio-api copied to clipboard

New Adapter : Astra DAO

Open Boyquotes opened this issue 2 years ago • 1 comments

When I run the command on example waller address in the README.md , the program return an error about an unkown contract/adapter.

There is an option to bypass this contract ?

Contract Address : https://etherscan.io/address/0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23

pnpm run adapter wallet ethereum 0x0000000000000000000000000000000000000000

> [email protected] adapter llamafolio-api
> tsx scripts/run-adapter.ts "wallet" "ethereum" "0x0000000000000000000000000000000000000000"

[balanceOf()] The contract function "balanceOf" returned no data ("0x").

This could be due to any of the following:
  - The contract does not have the function "balanceOf",
  - The parameters passed to the contract function may be invalid, or
  - The address is not a contract.
 
Contract Call:
  address:   0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23
  function:  balanceOf(address account)
  args:               (0x0000000000000000000000000000000000000000)

Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected]
Failed to run adapter The contract function "balanceOf" returned no data ("0x").

This could be due to any of the following:
  - The contract does not have the function "balanceOf",
  - The parameters passed to the contract function may be invalid, or
  - The address is not a contract.
 
Contract Call:
  address:   0x7E9c15C43f0D6C4a12E6bdfF7c7D55D0f80e3E23
  function:  balanceOf(address account)
  args:               (0x0000000000000000000000000000000000000000)

Docs: https://viem.sh/docs/contract/readContract.html
Version: [email protected]

Boyquotes avatar Jan 13 '24 00:01 Boyquotes

Hey @Boyquotes, thanks for reporting this issue ! There's no option, it works in production because the contract is optimized away. I'll have a look at it :)

0xsign avatar Jan 13 '24 14:01 0xsign