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
The runtime API client code generated by subxt for the NetworkId enum encodes its Ethereum variant as 7.
However, the foreignAssets.Created event in the register_token smoketest actually encodes this variant to 4.
Patching the assethub.rs generated code to flip the Westend and Ethereum NetworkId variant encodings "fixes" the test.
Reporting here first for triage, but may in fact be an issue with subxt or the latest polkadot-sdk (tested using sdk revision e79fd2bb9926be7d94be0c002676fca57b6116bf).
Log:
running 1 test
receipt transaction hash:"3681bb9ac2dda473f70e6376d9b52de8efa9e9da44c42a3c61b8ecdfc0983b26", transaction block:Some(5957,)Log{address:hex!("87d1f7fdfee7f651fabc8bfcb6e086c278b77a7d").into(),topics:vec![
hex!("7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f").into(),
hex!("c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539").into(),
hex!("5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0").into(),],data:hex!("00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e00a736aa000000000000774667629726ec1fabebcec0d9139bd1c8f72a2300e87648170000000000000000000000000000000000000000000000000000000000").into(),}Polling assethub block 916for created event.Polling assethub block 917for created event.Polling assethub block 918for created event.Polling assethub block 919for created event.Polling assethub block 920for created event.Polling assethub block 921for created event.Polling assethub block 922for created event.Polling assethub block 923for created event.Polling assethub block 924for created event.Polling assethub block 925for created event.Polling assethub block 926for created event.
test register_token has been running for over 60 seconds
Polling assethub block 927 for created event.Polling assethub block 928for created event.Polling assethub block 929for created event.Polling assethub block 930for created event.Polling assethub block 931for created event.Polling assethub block 932for created event.Polling assethub block 933for created event.Polling assethub block 934for created event.Polling assethub block 935for created event.Polling assethub block 936for created event.Polling assethub block 937for created event.Polling assethub block 938for created event.Polling assethub block 939for created event.Polling assethub block 940for created event.Polling assethub block 941for created event.Polling assethub block 942for created event.Polling assethub block 943for created event.Polling assethub block 944for created event.Polling assethub block 945for created event.Polling assethub block 946for created event.Polling assethub block 947for created event.Polling assethub block 948for created event.Polling assethub block 949for created event.Polling assethub block 950for created event.Created event found in assethub block 950.thread'register_token' panicked at tests/register_token.rs:88:13:
assertion `left == right` failed
left:[2,2,9,4,158,218,168,2,3,0,119,70,103,98,151,38,236,31,171,235,206,192,217,19,155,209,200,247,42,35]
right:[2,2,9,7,158,218,168,2,3,0,119,70,103,98,151,38,236,31,171,235,206,192,217,19,155,209,200,247,42,35]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test register_token ... FAILED
failures:
failures:
register_token
test result:FAILED.0 passed;1 failed;0 ignored;0 measured;0 filtered out; finished in213.87s
error: test failed, to rerun pass `--test register_token`
The text was updated successfully, but these errors were encountered:
This is probably happening because you are using a later version of polkadot-sdk. Or the bindings where generated with a later version of polkadot-sdk.
The runtime API client code generated by
subxt
for theNetworkId
enum encodes its Ethereum variant as7
.However, the
foreignAssets.Created
event in theregister_token
smoketest actually encodes this variant to4
.Patching the
assethub.rs
generated code to flip the Westend and EthereumNetworkId
variant encodings "fixes" the test.Reporting here first for triage, but may in fact be an issue with
subxt
or the latest polkadot-sdk (tested using sdk revision e79fd2bb9926be7d94be0c002676fca57b6116bf).Log:
The text was updated successfully, but these errors were encountered: