Skip to content

Commit

Permalink
chore: new router error no positive balance added
Browse files Browse the repository at this point in the history
  • Loading branch information
saledjenic committed Aug 28, 2024
1 parent 9c48906 commit 3cf6614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ui/app/AppLayouts/Wallet/WalletUtils.qml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ QtObject {
return qsTr("not enough ETH")
case Constants.routerErrorCodes.router.errLowAmountInForHopBridge:
return qsTr("amount in too low")
case Constants.routerErrorCodes.router.errNoPositiveBalance:
return qsTr("no positive balance")
default:
return qsTr("unknown processor error")
}
Expand Down Expand Up @@ -365,6 +367,8 @@ QtObject {
}
case Constants.routerErrorCodes.router.errLowAmountInForHopBridge:
return qsTr("bonder fee greater than estimated received, a higher amount is needed to cover fees")
case Constants.routerErrorCodes.router.errNoPositiveBalance:
return qsTr("no positive balance for your account across chains")
default:
return ""
}
Expand Down
1 change: 1 addition & 0 deletions ui/imports/utils/Constants.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,7 @@ QtObject {
readonly property string errCannotCheckReceiverBalance : "WR-024"
readonly property string errCannotCheckLockedAmounts : "WR-025"
readonly property string errLowAmountInForHopBridge : "WR-026"
readonly property string errNoPositiveBalance : "WR-027"
}
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/status-go
Submodule status-go updated 29 files
+81 −0 .github/workflows/commit-check.yml
+2 −1 Makefile
+8 −5 _assets/scripts/commit_check.sh
+22 −0 errors/errors.go
+1 −1 go.mod
+2 −2 go.sum
+1 −1 protocol/messenger_mailserver.go
+1 −0 services/wallet/router/errors.go
+7 −2 services/wallet/router/pathprocessor/processor.go
+1 −1 services/wallet/router/pathprocessor/processor_bridge_celar.go
+1 −1 services/wallet/router/pathprocessor/processor_bridge_hop.go
+1 −1 services/wallet/router/pathprocessor/processor_ens_public_key.go
+1 −1 services/wallet/router/pathprocessor/processor_ens_register.go
+1 −1 services/wallet/router/pathprocessor/processor_ens_release.go
+1 −1 services/wallet/router/pathprocessor/processor_erc1155.go
+1 −1 services/wallet/router/pathprocessor/processor_erc721.go
+1 −1 services/wallet/router/pathprocessor/processor_stickers_buy.go
+1 −1 services/wallet/router/pathprocessor/processor_swap_paraswap.go
+8 −8 services/wallet/router/pathprocessor/processor_test.go
+1 −1 services/wallet/router/pathprocessor/processor_transfer.go
+26 −7 services/wallet/router/router.go
+4 −0 services/wallet/router/router_send_type.go
+61 −18 services/wallet/router/router_v2.go
+6 −2 services/wallet/router/router_v2_test.go
+45 −41 services/wallet/router/router_v2_test_data.go
+37 −7 vendor/github.com/waku-org/go-waku/waku/v2/api/filter/filter.go
+4 −2 vendor/github.com/waku-org/go-waku/waku/v2/api/filter/filter_manager.go
+1 −1 vendor/modules.txt
+6 −2 wakuv2/waku.go

0 comments on commit 3cf6614

Please sign in to comment.