-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes on responding to dApp and assertions #1290
Conversation
@@ -268,8 +268,6 @@ class TransactionReviewViewModel @Inject constructor( | |||
} | |||
|
|||
fun dismissTerminalErrorDialog() { | |||
_state.update { it.copy(error = null) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error was consumed here, before having the chance to be sent to dApp.
@@ -471,7 +471,7 @@ fun Throwable.getDappMessage(): String? { | |||
"Wallet is using network ID: $currentNetworkId, request sent specified network ID: $requestNetworkId" | |||
} | |||
|
|||
else -> message | |||
else -> message ?: cause?.message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some errors carry a cause from the CommonException
coming from sargon. This message can be passed back to the CE logs.
@@ -326,7 +326,7 @@ class TransactionSubmitDelegateImpl @Inject constructor( | |||
val fungibleAsset = (transferable.asset as? Asset.Fungible) ?: return@mapNotNull null | |||
|
|||
TransactionGuarantee( | |||
amount = amount.estimated, | |||
amount = amount.guaranteed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The amount
in the builder is for guaranteed amounts and not for predicted.
Quality Gate passedIssues Measures |
Description