ref-fvm
ref-fvm copied to clipboard
EVM Tests: Change rt.expect_send_generalized ErrorNumber handling
It currently accepts:
pub fn expect_send_generalized(
&mut self,
to: Address,
method: MethodNum,
params: Option<IpldBlock>,
value: TokenAmount,
gas_limit: Option<u64>,
send_flags: SendFlags,
send_return: Option<IpldBlock>,
exit_code: ExitCode,
send_error: Option<ErrorNumber>,
) {
We should consider changing this to:
pub fn expect_send_generalized(
&mut self,
to: Address,
method: MethodNum,
params: Option<IpldBlock>,
value: TokenAmount,
gas_limit: Option<u64>,
send_flags: SendFlags,
outcome: Result<Response, ErrorNumber>, // <--
) {