-
Notifications
You must be signed in to change notification settings - Fork 391
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
The Address type in crypto.gno and crypto.go have different types #1632
Comments
I understand your proposal of switching |
I'm not sure what you mean by " |
Apologies, I phrased it a bit confusingly without context. To understand what I'm talking about see these two snippets: Line 17 in 846956f
gno/gnovm/stdlibs/std/context.go Lines 15 to 16 in 846956f
What I'm trying to say is that the two types in the two languages are effectively equivalent. ie. |
crypto.gno defines Address as a string.
crypto.go defines Address as a byte array.
It's not a show-stopper but it has caused me confusion as I switch between Go and Gno. If it's worthwhile to address this (pun intended), here's a suggestion. crypto.go also defines Bech32Address as a string. Maybe rename Address in crypto.gno to Bech32Address? (This is a nice, descriptive name.)
The text was updated successfully, but these errors were encountered: