Add Solana impl-specific error codes and add ProviderErrorUnion

- ProviderErrorUnion is to be used for shared mojo API which might
  return a specific type of ProviderError, such as SolanaProviderError.
- Also remove ETH in the ID of some sharable strings.
This commit is contained in:
Jocelyn Liu
2022-03-11 21:19:03 -08:00
parent 461d49c524
commit d3e4645987
8 changed files with 82 additions and 23 deletions
@@ -362,7 +362,7 @@ public class ApproveTxBottomSheetDialogFragment extends BottomSheetDialogFragmen
txService.approveTransaction(CoinType.ETH, mTxInfo.id, (success, error, errorMessage) -> {
assert success;
Utils.warnWhenError(ApproveTxBottomSheetDialogFragment.TAG_FRAGMENT,
"approveTransaction", error, errorMessage);
"approveTransaction", error.getProviderError(), errorMessage);
if (!success) {
return;
}