uptest-sc / uptest

"curl" for substrate runtime upgrade testing
7 stars 4 forks source link

subxt H256 and feature flag #79

Closed flipchan closed 11 months ago

flipchan commented 11 months ago

before:

 cargo build --release
   Compiling submit-runtime-upgrade v0.1.0 (/tmp/submit-runtime-upgrade)
error[E0277]: the trait bound `libuptest::types::H256: From<subxt::utils::H256>` is not satisfied
  --> src/tx_schedule.rs:19:47
   |
19 |     let blockhash: H256 = events.block_hash().into();
   |                                               ^^^^ the trait `From<subxt::utils::H256>` is not implemented for `libuptest::types::H256`
   |
   = help: the following other types implement trait `From<T>`:
             <libuptest::types::H256 as From<[u8; 32]>>
             <libuptest::types::H256 as From<&'a [u8; 32]>>
             <libuptest::types::H256 as From<&'a mut [u8; 32]>>
   = note: required for `subxt::utils::H256` to implement `Into<libuptest::types::H256>`

Now compiles fine with the subxthelper feature flag