fix spelling mistakes
This commit is contained in:
parent
4f03486011
commit
498334e860
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user