cosmwasm: Split FfiError::Other
FfiError::Otherdoes too many things right now. I suggest the following split
FfiError::InvalidUtf8when the Go backend returned something that cannot be converted to String (backend’s fault)FfiError::InputErrorwhen the API complains about invalid input (i.e. not the backend’s fault). Can potentially be back to the contract, depending in the import.FfiError::Unknown { msg: Option<String> }for whatever is left
@reuvenpo thoughts?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (18 by maintainers)
So – this brings us back to
, right?
As i said in the #443 comment, i think this naming scheme is OK for now, but the
ApiErrorname is more general, so feel free to use it instead if you think it’s better.