Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
broken pending bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ra0x3 committed Nov 28, 2023
1 parent 285b1d9 commit 4004faf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions packages/fuel-indexer-macros/src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,14 @@ pub fn transaction_predicate_tokens(manifest: &Manifest) -> TokenStream {


// FIXME: this needs a .find_many
if let Some(utxo) = PredicateCoinOutputEntity::find(PredicateCoinOutputEntity::owner().eq(owner.to_owned())) {
let predicate = IndexerPredicateEntity::find(IndexerPredicateEntity::coin_output().eq(utxo.id.clone()))
.expect("Could not find predicate entity for coin output.");
let predicate = IndexerPredicate::from(predicate);
let data = bincode::serialize(&predicate).expect("Could not serialize predicate.");
decoder.decode_type(Predicates::type_id(), data).expect("Could not decode predicate.");
}
// FIXME: pending https://github.com/FuelLabs/fuel-indexer/issues/1480
// if let Some(utxo) = PredicateCoinOutputEntity::find(PredicateCoinOutputEntity::owner().eq(owner.to_owned())) {
// let predicate = IndexerPredicateEntity::find(IndexerPredicateEntity::coin_output().eq(utxo.id.clone()))
// .expect("Could not find predicate entity for coin output.");
// let predicate = IndexerPredicate::from(predicate);
// let data = bincode::serialize(&predicate).expect("Could not serialize predicate.");
// decoder.decode_type(Predicates::type_id(), data).expect("Could not decode predicate.");
// }

}
_ => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end_block: ~
contract:
abi: packages/fuel-indexer-tests/sway/test-contract1/out/debug/test-contract1-abi.json
subscriptions:
- fuel1jjrj8zjyjc3s4qkw345mt57mwn56lnc9zwqnt5krrx9umwxacrvs2c3jyg
- fuel1vrwlw55qkc8xgn5sljjlawhlkqjgstczqwcyakx8a80c42tpqc8qv23p4k
identifier: index1
module:
wasm: target/wasm32-unknown-unknown/release/fuel_indexer_test.wasm
Expand Down

0 comments on commit 4004faf

Please sign in to comment.