You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This get_utxo_by_address query seems to fail with certain addresses on mainnet (failing decode cbor(?))
let addrx = "addr1w9sm8qpvuayw687645kkcaztr8csg2zl05cczu496ncx5nssarfwf".to_string();let addrx:Address = Address::from_bech32(&addrx).unwrap();let addrx:Addr = addrx.to_vec().into();let addrs:Addrs = vec![addrx];let result = queries_v16::get_utxo_by_address(client, era, addrs).await.unwrap();info!("result: {:?}", result);
Error:
thread 'main' panicked at examples/n2c-miniprotocols/src/main.rs:54:10:
called `Result::unwrap()` on an `Err` value: InvalidCbor(Error { err: TypeMismatch(Bytes), pos: Some(362), msg: "expected tag" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Where as this works:
let addrx = "addr1qxdr0dw7wlvdehmkx55w79hyp7vtnn5vyfp78nw2pyehq6xdl9me74py0xdc60uh5nrgfu5rch4fjtmu7hxeu2xce0ksnycw5g".to_string();let addrx:Address = Address::from_bech32(&addrx).unwrap();let addrx:Addr = addrx.to_vec().into();
Querying the same address but in CBOR-in-CBOR seems to work perfect
let addrz = "addr1w9sm8qpvuayw687645kkcaztr8csg2zl05cczu496ncx5nssarfwf".to_string();let addrz:Address = Address::from_bech32(&addrz).unwrap();let addrz:Addr = addrz.to_vec().into();let query = queries_v16::BlockQuery::GetUTxOByAddress(vec![addrz]);let result = queries_v16::get_cbor(client, era, query).await.unwrap();
Although I have not tested decoding the cbor after this query, so it could end up with the same issue.
The text was updated successfully, but these errors were encountered:
Mercurial
changed the title
[BUG] queries_v16::get_utxo_by_address fails on certain addresses
[BUG] queries_v16::get_utxo_by_address fails on certain mainnet addresses
Mar 13, 2024
This get_utxo_by_address query seems to fail with certain addresses on mainnet (failing decode cbor(?))
Error:
Where as this works:
Querying the same address but in CBOR-in-CBOR seems to work perfect
Although I have not tested decoding the cbor after this query, so it could end up with the same issue.
The text was updated successfully, but these errors were encountered: