galacticcouncil / galacticcouncil/hydration-node
Bug: XcmPaymentApi.queryWeightToAssetFee is returning WeightNotComputable error
- 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
Contributor guide
Assessment
This issue has not been assessed yet.