Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cadence.Path to go value will return nil #1324

Closed
yihau opened this issue Dec 23, 2021 · 1 comment
Closed

cadence.Path to go value will return nil #1324

yihau opened this issue Dec 23, 2021 · 1 comment

Comments

@yihau
Copy link

yihau commented Dec 23, 2021

Issue To Be Solved

cadence.Path's ToGoValue will return nil (https://github.com/onflow/cadence/blob/master/values.go#L1216)

Suggested Solution

maybe return a string of path

func (v Path) ToGoValue() interface{} {
-	return nil
+      return v.String()
}

func (v Path) String() string {
	return format.Path(
		v.Domain,
		v.Identifier,
	)
}
@turbolent
Copy link
Member

The ToGoValue functions got removed in #3291 (see linked discussion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants