basecoin compiles
This commit is contained in:
+1
-1
@@ -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
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user