-
Notifications
You must be signed in to change notification settings - Fork 54
Labels
questionFurther information is requestedFurther information is requested
Description
Summary
Problem
Currently, Trident's execute_transaction method doesn't allow accessing the Result<T> value returned by the executing instruction.
This limitation is especially troublesome in the context of View instructions, as they don't change the state of the blockchain - and, therefore, their Result<T> value is the only method there is to test the correctness of the respective instructions.
Current Workaround
None
Basic Example
let result = self.trident.execute_transaction(&mut my_tx, Some("MyTx"));
let returned_value = result.unwrap();Drawbacks
None
Unresolved questions
No response
Implementation PR
No response
Reference Issues
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested