galacticcouncil / galacticcouncil/hydration-node

Bug: XcmPaymentApi.queryWeightToAssetFee is returning WeightNotComputable error

Open
#1,231 11 comments 0 reactions 1 assignee Claimed by @dmoka View on GitHub
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

Hello Hydration team, I am trying to get the fee using Hydration XcmPaymentApi, but it's not accepting the snowbridge USDC asset location and instead it's returning WeightNotComputable error. In Hydration app I can set this asset as fee asset without a problem.

### Expected Behavior
I should be able to get the fee from XcmPaymentApi.

### Actual Behavior
I get a WeightNotComputable error instead.

### Steps to Reproduce
1. Open [PolkadotJS](https://polkadot.js.org/),
2. Select Hydration
2. Go to runtime calls
3. Select XcmPaymentApi.queryWeightToAssetFee
4. Enter this location and weight
```

weight:
refTime: 1000
proofSize: 1000

location:
{
"parents": 2,
"interior": {
"X2": [
{
"GlobalConsensus": {
"Ethereum": {
"chainId": 1
}
}
},
{
"AccountKey20": {
"network": null,
"key": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
}
]
}
}
```
5. Observe the WeightNotComputableError

### Context
I am trying to get an origin execution fee in this currency

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.