basecoin compiles

This commit is contained in:
Ethan Buchman
2018-01-14 22:49:57 -05:00
parent d2a801a513
commit 381424460c
8 changed files with 42 additions and 28 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func (acc BaseAccount) GetPubKey() crypto.PubKey {
// Implements Account
func (acc *BaseAccount) SetPubKey(pubKey crypto.PubKey) error {
if !acc.PubKey.Empty() {
if acc.PubKey != nil {
return errors.New("cannot override BaseAccount pubkey")
}
acc.PubKey = pubKey
+1 -1
View File
@@ -46,7 +46,7 @@ func NewAnteHandler(store sdk.AccountStore) sdk.AnteHandler {
signerAccs[i] = signerAcc
// If no pubkey, set pubkey.
if signerAcc.GetPubKey().Empty() {
if signerAcc.GetPubKey() == nil {
err := signerAcc.SetPubKey(sig.PubKey)
if err != nil {
return ctx, sdk.Result{