Fix: .signTransaction from dapp browser web3 call should only sign not sign+send #6351

fix-signtransaction-from-dapp-browser-web3-call-should-only-sign-not-sign+send
Hwee-Boon Yar 2 years ago
parent 4cf54bd64a
commit d5f11cdba3
  1. 2
      AlphaWallet/Browser/Coordinators/DappBrowserCoordinator.swift

@ -499,7 +499,7 @@ extension DappBrowserCoordinator: BrowserViewControllerDelegate {
func performDappAction(account: AlphaWallet.Address) { func performDappAction(account: AlphaWallet.Address) {
switch action { switch action {
case .signTransaction(let unconfirmedTransaction): case .signTransaction(let unconfirmedTransaction):
executeTransaction(action: action, callbackID: callbackID, transaction: unconfirmedTransaction, type: .signThenSend) executeTransaction(action: action, callbackID: callbackID, transaction: unconfirmedTransaction, type: .sign)
case .sendTransaction(let unconfirmedTransaction): case .sendTransaction(let unconfirmedTransaction):
executeTransaction(action: action, callbackID: callbackID, transaction: unconfirmedTransaction, type: .signThenSend) executeTransaction(action: action, callbackID: callbackID, transaction: unconfirmedTransaction, type: .signThenSend)
case .signMessage(let hexMessage): case .signMessage(let hexMessage):

Loading…
Cancel
Save