Skip to content

Commit

Permalink
[skycoin] Fix compilation errors in models/wallet.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricio1802 committed Feb 9, 2020
1 parent 0e02650 commit 6197301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/coin/ethereum/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func init() {
logEthereum.WithError(err).Warn("Couldn't unmarshal option values")
}

err := core.GetMultiPool().CreateSection(eth.PoolSection, eth.NewEthereumConnectionFactory(node["address"]))
err = core.GetMultiPool().CreateSection(eth.PoolSection, eth.NewEthereumConnectionFactory(node["address"]))
if err != nil {
logEthereum.Warn("Couldn't create section for Ethereum")
}
Expand Down
4 changes: 4 additions & 0 deletions src/coin/skycoin/models/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (wltSrv *SkycoinRemoteWallet) Encrypt(walletName string, pwd core.PasswordR
logWallet.WithError(err).Warn("Couldn't POST /api/v1/wallet/encrypt")
return err
}
return nil
}

func (wltSrv *SkycoinRemoteWallet) Decrypt(walletName string, pwd core.PasswordReader) error {
Expand All @@ -211,6 +212,7 @@ func (wltSrv *SkycoinRemoteWallet) Decrypt(walletName string, pwd core.PasswordR
logWallet.WithError(err).Warn("Couldn't POST /api/v1/wallet/decrypt")
return err
}
return nil
}

func (wltSrv *SkycoinRemoteWallet) IsEncrypted(walletName string) (bool, error) {
Expand Down Expand Up @@ -1005,6 +1007,7 @@ func (wltSrv *SkycoinLocalWallet) Encrypt(walletName string, password core.Passw
logWallet.WithError(err).WithField("dir", wltSrv.walletDir).Error("Call to wallet.Save(wlt, dir) inside Encrypt failed")
return err
}
return nil

}

Expand Down Expand Up @@ -1041,6 +1044,7 @@ func (wltSrv *SkycoinLocalWallet) Decrypt(walletName string, password core.Passw
logWallet.WithError(err).WithField("dir", wltSrv.walletDir).Error("Call to wallet.Save(wlt, dir) inside Decrypt failed")
return err
}
return nil
}

func (wltSrv *SkycoinLocalWallet) IsEncrypted(walletName string) (bool, error) {
Expand Down

0 comments on commit 6197301

Please sign in to comment.