Emurgo / message-signing

MIT License
26 stars 16 forks source link

Small variable name change because of JavaScript problems #4

Closed alessandrokonrad closed 3 years ago

alessandrokonrad commented 3 years ago

I successfully compiled the rust library into an NPM package. But running it in JavaScript gives me an error:

static new(protected, unprotected) {
           ^^^^^^^^^

SyntaxError: Unexpected strict mode reserved word

Seems like protected is a reserved key word. So I added an underscore in the rust library and for consistency I added it to the unprotected argument as well.