mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-08-06 08:30:14 +08:00
chore: docs: fix some misspellings (#12333)
Signed-off-by: riskrose <riskrock@qq.com>
This commit is contained in:
@ -575,7 +575,7 @@ func (a *fundedAddress) processWithdrawals(withdrawals []*fundRequest) (msgCid c
|
||||
return withdrawFundsCid, nil
|
||||
}
|
||||
|
||||
// asynchonously wait for results of message
|
||||
// asynchronously wait for results of message
|
||||
func (a *fundedAddress) startWaitForResults(msgCid cid.Cid) {
|
||||
go func() {
|
||||
err := a.env.WaitMsg(a.ctx, msgCid)
|
||||
|
@ -325,7 +325,7 @@ var EvmInvokeCmd = &cli.Command{
|
||||
Usage: "optionally specify the account to use for sending the exec message",
|
||||
}, &cli.IntFlag{
|
||||
Name: "value",
|
||||
Usage: "optionally specify the value to be sent with the invokation message",
|
||||
Usage: "optionally specify the value to be sent with the invocation message",
|
||||
},
|
||||
},
|
||||
Action: func(cctx *cli.Context) error {
|
||||
|
@ -1049,7 +1049,7 @@ func compareProposalToAllocation(prop market8.DealProposal, alloc verifreg9.Allo
|
||||
|
||||
proposalClientID, err := address.IDFromAddress(prop.Client)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("couldnt get ID from address")
|
||||
return xerrors.Errorf("couldn't get ID from address")
|
||||
}
|
||||
if proposalClientID != uint64(alloc.Client) {
|
||||
return xerrors.Errorf("client id mismatch between proposal and allocation: %v, %v", proposalClientID, alloc.Client)
|
||||
@ -1057,7 +1057,7 @@ func compareProposalToAllocation(prop market8.DealProposal, alloc verifreg9.Allo
|
||||
|
||||
proposalProviderID, err := address.IDFromAddress(prop.Provider)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("couldnt get ID from address")
|
||||
return xerrors.Errorf("couldn't get ID from address")
|
||||
}
|
||||
if proposalProviderID != uint64(alloc.Provider) {
|
||||
return xerrors.Errorf("provider id mismatch between proposal and allocation: %v, %v", proposalProviderID, alloc.Provider)
|
||||
|
@ -2186,7 +2186,7 @@ USAGE:
|
||||
|
||||
OPTIONS:
|
||||
--from value optionally specify the account to use for sending the exec message
|
||||
--value value optionally specify the value to be sent with the invokation message (default: 0)
|
||||
--value value optionally specify the value to be sent with the invocation message (default: 0)
|
||||
--help, -h show help
|
||||
```
|
||||
|
||||
|
@ -425,7 +425,7 @@ func TestCreationTimeCleared(t *testing.T) {
|
||||
m.planSingle(SectorPieceAdded{})
|
||||
require.Equal(m.t, m.state.State, SnapDealsWaitDeals)
|
||||
|
||||
// abort shoult clean up CreationTime
|
||||
// abort should clean up CreationTime
|
||||
m.planSingle(SectorAbortUpgrade{})
|
||||
require.Equal(m.t, m.state.State, AbortUpgrade)
|
||||
|
||||
|
@ -362,7 +362,7 @@ func (m *Sealing) sectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPiec
|
||||
|
||||
ts, err := m.Api.ChainHead(ctx)
|
||||
if err != nil {
|
||||
return api.SectorOffset{}, xerrors.Errorf("couldnt get chain head: %w", err)
|
||||
return api.SectorOffset{}, xerrors.Errorf("couldn't get chain head: %w", err)
|
||||
}
|
||||
|
||||
nv, err := m.Api.StateNetworkVersion(ctx, types.EmptyTSK)
|
||||
|
@ -27,7 +27,7 @@ func (m *Sealing) MarkForUpgrade(ctx context.Context, id abi.SectorNumber) error
|
||||
|
||||
ts, err := m.Api.ChainHead(ctx)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("couldnt get chain head: %w", err)
|
||||
return xerrors.Errorf("couldn't get chain head: %w", err)
|
||||
}
|
||||
onChainInfo, err := m.Api.StateSectorGetInfo(ctx, m.maddr, id, ts.Key())
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user