Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in run union-to-holesky.ts #3828

Open
cbnoi opened this issue Feb 21, 2025 · 1 comment
Open

error in run union-to-holesky.ts #3828

cbnoi opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
A-app Area: app.union.build C-bug Category: This is a bug. P-high High priority

Comments

@cbnoi
Copy link

cbnoi commented Feb 21, 2025

bun playground/union-to-holesky.ts --private-key "..." --estimate-gas

got ->

ℹ channel { source_chain_id: 'union-testnet-9', 11:20:16 PM
source_connection_id: 1,
source_channel_id: 1,
source_port_id:
'756e696f6e3178326a7a65757037757766786a78787274666e61326b746375676c746e746775366b766330656561796b306438326c32343763717a3636396565',
destination_chain_id: '17000',
destination_connection_id: 22,
destination_channel_id: 42,
destination_port_id: '7b7872fec715c787a1be3f062adedc82b3b06144' }
ℹ could not get quote token 11:20:16 PM

ERROR failed to get predict token using evm call 11:20:16 PM

at <anonymous> (src/query/offchain/ucs03-channels.ts:153:20)
at <anonymous> (node_modules/neverthrow/dist/index.cjs.js:106:35)
at processTicksAndRejections (native:7:39)

[cause]: Invalid parameters were provided to the RPC method.
Double check you have provided the correct parameters.

URL: https://ethereum-holesky-rpc.publicnode.com
Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}

Raw Call Arguments:
to: 0x7b7872fec715c787a1be3f062adedc82b3b06144
data: 0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000

Contract Call:
address: 0x7b7872fec715c787a1be3f062adedc82b3b06144
function: predictWrappedToken(uint256 path, uint32 channel, bytes token)
args: (0, 42, muno)

Docs: https://viem.sh/docs/contract/readContract
Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
Version: [email protected]

  Double check you have provided the correct parameters.
  
  URL: https://ethereum-holesky-rpc.publicnode.com
  Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}
  
  Raw Call Arguments:
  to:    0x7b7872fec715c787a1be3f062adedc82b3b06144
  data:  0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000
  
  Contract Call:
  address:   0x7b7872fec715c787a1be3f062adedc82b3b06144
  function:  predictWrappedToken(uint256 path, uint32 channel, bytes token)
  args:                         (0, 42, muno)
  
  Docs: https://viem.sh/docs/contract/readContract
  Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
  Version: [email protected]
  at new BaseError (node_modules/viem/_esm/errors/base.js:34:9)
  at new ContractFunctionExecutionError (node_modules/viem/_esm/errors/contract.js:77:9)
  at getContractError (node_modules/viem/_esm/utils/errors/getContractError.js:30:16)
  at <anonymous> (node_modules/viem/_esm/actions/public/readContract.js:58:15)
  at processTicksAndRejections (native:7:39)

[cause]: Invalid parameters were provided to the RPC method.

Double check you have provided the correct parameters.

URL: https://ethereum-holesky-rpc.publicnode.com
Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}

Raw Call Arguments:
to: 0x7b7872fec715c787a1be3f062adedc82b3b06144
data: 0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000

Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
Version: [email protected]

    Double check you have provided the correct parameters.
    
    URL: https://ethereum-holesky-rpc.publicnode.com
    Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}
    
    Raw Call Arguments:
    to:    0x7b7872fec715c787a1be3f062adedc82b3b06144
    data:  0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000
    
    Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
    Version: [email protected]
    at new BaseError (node_modules/viem/_esm/errors/base.js:34:9)
    at new CallExecutionError (node_modules/viem/_esm/errors/contract.js:34:9)
    at getCallError (node_modules/viem/_esm/utils/errors/getCallError.js:11:16)
    at <anonymous> (node_modules/viem/_esm/actions/public/call.js:134:15)
    at processTicksAndRejections (native:7:39)

  [cause]: Invalid parameters were provided to the RPC method.

Double check you have provided the correct parameters.

URL: https://ethereum-holesky-rpc.publicnode.com
Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}

Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
Version: [email protected]

      Double check you have provided the correct parameters.
      
      URL: https://ethereum-holesky-rpc.publicnode.com
      Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}
      
      Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
      Version: [email protected]
      at new BaseError (node_modules/viem/_esm/errors/base.js:34:9)
      at new RpcError (node_modules/viem/_esm/errors/rpc.js:6:9)
      at new InvalidParamsRpcError (node_modules/viem/_esm/errors/rpc.js:81:9)
      at <anonymous> (node_modules/viem/_esm/utils/buildRequest.js:44:35)
      at processTicksAndRejections (native:7:39)

    [cause]: RPC Request failed.

URL: https://ethereum-holesky-rpc.publicnode.com
Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}

Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
Version: [email protected]

        URL: https://ethereum-holesky-rpc.publicnode.com
        Request body: {"method":"eth_call","params":[{"data":"0xea10e2fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004muno000000000000000000000000000000000000000000000000000000000000","to":"0x7b7872fec715c787a1be3f062adedc82b3b06144"},"latest"]}
        
        Details: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
        Version: [email protected]
        at new BaseError (node_modules/viem/_esm/errors/base.js:34:9)
        at new RpcRequestError (node_modules/viem/_esm/errors/request.js:61:9)
        at <anonymous> (node_modules/viem/_esm/clients/transports/http.js:52:31)
        at processTicksAndRejections (native:7:39)

      [cause]: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes
@cbnoi cbnoi added A-app Area: app.union.build C-bug Category: This is a bug. P-high High priority labels Feb 21, 2025
@cybersamrai
Copy link

This is something that needs to fixed as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-app Area: app.union.build C-bug Category: This is a bug. P-high High priority
Projects
None yet
Development

No branches or pull requests

3 participants