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
Summary
Problem
Currently, Trident's
execute_transactionmethod doesn't allow accessing theResult<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
Drawbacks
None
Unresolved questions
No response
Implementation PR
No response
Reference Issues
No response