diff --git a/api/api_storage.go b/api/api_storage.go index 242685109..f42ab6327 100644 --- a/api/api_storage.go +++ b/api/api_storage.go @@ -50,9 +50,9 @@ type StorageMiner interface { // WithdrawBalance allows to withdraw balance from miner actor to owner address // Specify amount as "0" to withdraw full balance. This method returns a message CID - // even when StateWaitMessage() fails and reciept exit code is non-zero + // even when StateWaitMessage() fails and receipt exit code is non-zero // User should check for message execution manually if this method returns a - // "Timeout waiting for withdrawl message" error. + // "Timeout waiting for withdrawal message" error. WithdrawBalance(ctx context.Context, amount abi.TokenAmount, confidence uint64) (cid.Cid, error) //perm:admin MiningBase(context.Context) (*types.TipSet, error) //perm:read diff --git a/node/impl/storminer.go b/node/impl/storminer.go index 9a9228331..1be2e9cca 100644 --- a/node/impl/storminer.go +++ b/node/impl/storminer.go @@ -1323,11 +1323,11 @@ func (sm *StorageMinerAPI) WithdrawBalance(ctx context.Context, amount abi.Token // wait for it to get mined into a block wait, err := sm.Full.StateWaitMsg(ctx, smsg.Cid(), confidence, abi.ChainEpoch(2), true) if err != nil { - return smsg.Cid(), xerrors.Errorf("Timeout waiting for withdrawl message") + return smsg.Cid(), xerrors.Errorf("Timeout waiting for withdrawal message") } if wait.Receipt.ExitCode != 0 { - return wait.Message, xerrors.Errorf("Failed to execute withdrawl message: %w", err) + return wait.Message, xerrors.Errorf("Failed to execute withdrawal message: %w", err) } return wait.Message, nil