-
Indexer fetches only one of the two sequential eventsHi guys, hope you are doing well ☀️ We noticed that the indexer handled it successfully only first of them I created a simple code to show the problem more clear: In that example we are have 2 projects: contract and testnet test
indexerHow to reproduce
And you will see only that output But I'm expected to see n=2 as well Toolchain
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@chlenc Gonna look into this more today |
Beta Was this translation helpful? Give feedback.
-
@chlenc I'll need you to show me the receipts that are returned from your contract call. For example, this function in our test smart contract: fn trigger_multiargs() -> Ping {
log(Pung {
id: 123,
value: 54321,
is_pung: false,
pung_from: Identity::ContractId(ContractId::from(0x322ee5fb2cabec472409eb5f9b42b59644edb7bf9943eda9c2e3947305ed5e96)),
});
log(Pong { id: 45678, value: 45678 });
Ping { id: 12345, value: 12345, message: "a multiarg ping entity " }
} When called like this: let r = state
.contract
.methods()
.trigger_multiargs()
.tx_params(tx_params())
.call()
.await
.unwrap();
println!("{r:?}"); // <-- this is where we print the receipts Generates the following output:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
@chlenc
TestEvent
events from one contract call to the same contract methodVec
types (and twoTestEvent
s would have to be contained inside of some struct (e.g.,Vec
))