Skip to content

Commit

Permalink
change error message about 'from' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricPanda committed May 29, 2020
1 parent 8937dbb commit 13c86d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vms/avm/service.go
Expand Up @@ -708,11 +708,11 @@ func (service *Service) Send(r *http.Request, args *SendArgs, reply *SendReply)
if args.From != "" {
fromBytes, err := service.vm.Parse(args.From)
if err != nil {
return fmt.Errorf("problem parsing to address: %w", err)
return fmt.Errorf("problem parsing argument 'from' to address: %w", err)
}
from, err := ids.ToShortID(fromBytes)
if err != nil {
return fmt.Errorf("problem parsing to address: %w", err)
return fmt.Errorf("problem parsing argument 'from' to address: %w", err)
}

fromkc := secp256k1fx.NewKeychain()
Expand Down

0 comments on commit 13c86d8

Please sign in to comment.