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

Lrz update remove get unspent tx outputs #1393

Conversation

Oscar-Pepper
Copy link
Contributor

solves build errors:

error[E0407]: method get_unspent_transparent_outputs is not a member of trait InputSource
--> zingolib/src/wallet/transaction_records_by_id/trait_inputsource.rs:296:5
|
296 | fn get_unspent_transparent_outputs(
| ^ ------------------------------- help: there is an associated function with a similar name: get_unspent_transparent_output
| |
| |
297 | | &self,
298 | | // I don't understand what this argument is for. Is the Trait's intent to only shield
299 | | // utxos from one address at a time? Is this needed?
... |
344 | | .collect()
345 | | }
| |^ not a member of trait InputSource

error[E0407]: method get_unspent_transparent_outputs is not a member of trait InputSource
--> zingolib/src/wallet/tx_map_and_maybe_trees/trait_stub_inputsource.rs:55:5
|
55 | fn get_unspent_transparent_outputs(
| ^ ------------------------------- help: there is an associated function with a similar name: get_unspent_transparent_output
| |
| |
56 | | &self,
57 | | address: &zcash_primitives::legacy::TransparentAddress,
58 | | max_height: zcash_primitives::consensus::BlockHeight,
... |
63 | | .map_err(TxMapAndMaybeTreesTraitError::InputSource)
64 | | }
| |^ not a member of trait InputSource

AND

error[E0308]: mismatched types
--> zingolib/src/wallet/transaction_records_by_id/trait_inputsource.rs:339:29
|
333 | Ok(WalletTransparentOutput::from_parts(
| ----------------------------------- arguments to this function are incorrect
...
339 | confirmed_height,
| ^^^^^^^^^^^^^^^^ expected Option, found BlockHeight
|
= note: expected enum std::option::Option
found struct BlockHeight
note: associated function defined here
--> /home/oscar/.cargo/git/checkouts/librustzcash-2a71d81ac8756eb7/53331a3/zcash_client_backend/src/wallet.rs:270:12
|
270 | pub fn from_parts(
| ^^^^^^^^^^
help: try wrapping the expression in Some
|
339 | Some(confirmed_height),
| +++++ +

AND

error[E0599]: no method named get_unspent_transparent_outputs found for struct TransactionRecordsById in the current scope

--> zingolib/src/wallet/tx_map_and_maybe_trees/trait_stub_inputsource.rs:62:14
|
61 | / self.transaction_records_by_id
62 | | .get_unspent_transparent_outputs(address, max_height, exclude)
| |-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: zingolib/src/wallet/transaction_records_by_id.rs:35:1
|
35 | pub struct TransactionRecordsById(pub HashMap<TxId, TransactionRecord>);
| --------------------------------- method get_unspent_transparent_outputs not found for this struct
|
help: there is a method get_unspent_transparent_output with a similar name, but with different arguments
--> /home/oscar/.cargo/git/checkouts/librustzcash-2a71d81ac8756eb7/53331a3/zcash_client_backend/src/data_api.rs:764:5
|
764 | / fn get_unspent_transparent_output(
765 | | &self,
766 | | outpoint: &OutPoint,
767 | | ) -> Result<Option, Self::Error> {
| |_______________________________________________^

@idky137 idky137 merged commit 388dea8 into zingolabs:lrz_update Sep 17, 2024
4 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants