Skip to content
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

fix: implemented restore wallet base on input seed #553

Merged
merged 8 commits into from
Jun 30, 2023
Merged
7 changes: 3 additions & 4 deletions cmd/gtk/main_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/gotk3/gotk3/gtk"
"github.com/pactus-project/pactus/crypto"
"github.com/pactus-project/pactus/util"
)

//go:embed assets/ui/main_window.ui
Expand Down Expand Up @@ -84,19 +83,19 @@ func (mw *mainWindow) OnTransactionTransfer() {
}

func (mw *mainWindow) onMenuItemActivateWebsite(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactus.org/"); err != nil {
if err := openURLInBrowser("https://pactus.org/"); err != nil {
fatalErrorCheck(err)
}
}

func (mw *mainWindow) onMenuItemActivateExplorer(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactusscan.com/"); err != nil {
if err := openURLInBrowser("https://pactusscan.com/"); err != nil {
fatalErrorCheck(err)
}
}

func (mw *mainWindow) onMenuItemActivateLearn(_ *gtk.MenuItem) {
if err := util.OpenURLInBrowser("https://pactus.org/learn/"); err != nil {
if err := openURLInBrowser("https://pactus.org/learn/"); err != nil {
fatalErrorCheck(err)
}
}
Expand Down
Loading