Skip to content

Commit 32b1e8a

Browse files
authored
fix: convertRunRequest: std.MemPackage needs a Name (#206)
After the recent "crossing" changes, `TestRunSingle_Integration`, etc. were updated so that `std.MemPackage` [needs a `Name`](https://github.com/gnolang/gno/blob/9b763e9b11a55be644f33208840ad2e8f88336af/gno.land/pkg/gnoclient/integration_test.go#L340-L341) so that the back end handler can use it to set the `Path`. We need to do the same. Without this, calling `Run` results in an "invalid path" error. Signed-off-by: Jeff Thompson <[email protected]>
1 parent c5d395d commit 32b1e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ func (s *gnoNativeService) convertRunRequest(req *api_gen.RunRequest) (*gnoclien
580580
}
581581

582582
memPkg := &std.MemPackage{
583+
Name: "main",
584+
// Path will be automatically set by handler.
583585
Files: []*std.MemFile{
584586
{
585587
Name: "main.gno",

0 commit comments

Comments
 (0)