Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions required by wallet removed #3415

Closed
yeastplume opened this issue Aug 7, 2020 · 3 comments · Fixed by mimblewimble/grin-wallet#502
Closed

Functions required by wallet removed #3415

yeastplume opened this issue Aug 7, 2020 · 3 comments · Fixed by mimblewimble/grin-wallet#502
Assignees

Comments

@yeastplume
Copy link
Member

I haven't gone through all of the recent update, but kernels_mut was needed by the wallet when updating the excess in signatures when finalizing a transaction. A couple of iterator methods seem to be gone as well.

Real issue here is that changes to grin should be triggering wallet testing as well.

error[E0599]: no method named `kernels_mut` found for mutable reference `&mut grin_core::core::transaction::Transaction` in the current scope
   --> libwallet/src/slate.rs:680:12
    |
680 |         final_tx.kernels_mut()[0].excess = final_excess.clone();
    |                  ^^^^^^^^^^^ method not found in `&mut grin_core::core::transaction::Transaction`

error[E0599]: no method named `kernels_mut` found for mutable reference `&mut grin_core::core::transaction::Transaction` in the current scope
   --> libwallet/src/slate.rs:681:12
    |
681 |         final_tx.kernels_mut()[0].excess_sig = final_sig.clone();
    |                  ^^^^^^^^^^^ method not found in `&mut grin_core::core::transaction::Transaction`

error[E0599]: no method named `iter` found for enum `grin_core::core::transaction::Inputs` in the current scope
   --> libwallet/src/slate.rs:834:16
    |
834 |         for i in ins.iter() {
    |                      ^^^^ method not found in `grin_core::core::transaction::Inputs`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `iter`, perhaps you need to implement one of them:
            candidate #1: `types::WalletBackend`
            candidate #2: `types::WalletOutputBatch`

error[E0599]: no method named `iter` found for reference `&grin_core::core::transaction::Inputs` in the current scope
   --> libwallet/src/slate.rs:960:16
    |
960 |         let inputs = map_vec!(inputs, |inp| InputV4::from(inp));
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&grin_core::core::transaction::Inputs`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `iter`, perhaps you need to implement one of them:
            candidate #1: `types::WalletBackend`
            candidate #2: `types::WalletOutputBatch`
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `push` found for enum `grin_core::core::transaction::Inputs` in the current scope
    --> libwallet/src/slate.rs:1118:27
     |
1118 |             None => tx.body.inputs.push(Input {
     |                                    ^^^^ method not found in `grin_core::core::transaction::Inputs`

error[E0308]: mismatched types
    --> libwallet/src/slate.rs:1233:4
     |
1233 |             inputs,
     |             ^^^^^^
     |             |
     |             expected enum `grin_core::core::transaction::Inputs`, found struct `std::vec::Vec`
     |             help: try using a variant of the expected enum: `grin_core::core::transaction::Inputs::FeaturesAndCommit(inputs)`
     |
     = note: expected enum `grin_core::core::transaction::Inputs`
              found struct `std::vec::Vec<grin_core::core::transaction::Input>`
@yeastplume
Copy link
Member Author

Also note if testing against current wallet master, the ed25519-dalek crate (included in a few crates) needs to be tied to =1.0.0-pre.3 due to some surprise changes in the pre.4 release

@antiochp
Copy link
Member

antiochp commented Aug 7, 2020

Ahh ok - let me take a look at this.

@antiochp antiochp self-assigned this Aug 7, 2020
@antiochp
Copy link
Member

antiochp commented Aug 7, 2020

Agreed on node changes needing to trigger wallet tests in some kind of automated way. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants