From fd6442c5fc36267f9a6912246b3909a729742beb Mon Sep 17 00:00:00 2001 From: lencap Date: Fri, 9 Aug 2024 17:14:32 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: lencap --- pkg/repo/fsrepo.go | 2 +- pkg/vm/vmcontext/invocation_context.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/repo/fsrepo.go b/pkg/repo/fsrepo.go index cd31a2846c..a690d9fa7e 100644 --- a/pkg/repo/fsrepo.go +++ b/pkg/repo/fsrepo.go @@ -599,7 +599,7 @@ func APIAddrFromRepoPath(repoPath string) (string, error) { return apiAddrFromFile(repoPath) } -// APIAddrFromRepoPath returns the token from the filecoin repo +// APITokenFromRepoPath returns the token from the filecoin repo func APITokenFromRepoPath(repoPath string) (string, error) { repoPath, err := homedir.Expand(repoPath) if err != nil { diff --git a/pkg/vm/vmcontext/invocation_context.go b/pkg/vm/vmcontext/invocation_context.go index ed22c2e39e..1b5ed62f97 100644 --- a/pkg/vm/vmcontext/invocation_context.go +++ b/pkg/vm/vmcontext/invocation_context.go @@ -468,7 +468,7 @@ func (ctx *invocationContext) Balance() abi.TokenAmount { // implement runtime.InvocationContext for invocationContext var _ runtime.ExtendedInvocationContext = (*invocationContext)(nil) -// NextActorAddress predicts the address of the next actor created by this address. +// NewActorAddress predicts the address of the next actor created by this address. // // Code is adapted from vm.Runtime#NewActorAddress() func (ctx *invocationContext) NewActorAddress() address.Address {