From b7644b465981ab23296616ca78de18a649a89c66 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Tue, 19 Sep 2023 19:28:36 +0200 Subject: [PATCH] allow printing unexported struct fields --- .github/workflows/gh-pages.yml | 2 +- gnovm/pkg/gnolang/gonative.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ddcfe876439..2233132e745 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,7 +3,7 @@ name: gh-pages on: push: - branches: [ "patch/gnochess" ] + branches: [ "master" ] workflow_dispatch: permissions: diff --git a/gnovm/pkg/gnolang/gonative.go b/gnovm/pkg/gnolang/gonative.go index f3739dad0f3..129cac1af84 100644 --- a/gnovm/pkg/gnolang/gonative.go +++ b/gnovm/pkg/gnolang/gonative.go @@ -863,7 +863,7 @@ func gno2GoType(t Type) reflect.Type { fn := string(field.Name) pkgPath := "" if !isUpper(fn) { - pkgPath = ct.PkgPath + fn = "X" + fn } gfs[i] = reflect.StructField{ Name: fn,