NaturalSelectionLabs / RSS3-SDK-for-JavaScript

⚠️ DEPRECATED
48 stars 5 forks source link

exception not being handled properly "Unexpected token '.'" #5

Closed t-900-a closed 2 years ago

t-900-a commented 2 years ago

Relevant line of code in this package - https://github.com/NaturalSelectionLabs/RSS3-SDK-for-JavaScript/blob/6ea4dd5d28c0264abc3633550a0dda0c06f1fac2/src/files.ts#L60 Error received - "Unexpected token '.'" Error can be seen in full here - https://github.com/t-900-a/action-push-rss3/runs/5268971189?check_suite_focus=true

Code that is using this package - https://github.com/t-900-a/action-push-rss3/blob/main/src/rss3-push.js

The code that is being ran is using the private key who's public key pair is 0x76c9e9E2ca07c194a8f1E11C557fB26558D3336b

This public key is not registered, so I imagine that is what is causing the exception in the first place. This should be handled more gracefully.

t-900-a commented 2 years ago

node 12 doesn't support optional chaining. Error fixed by moving to node 16. https://github.com/t-900-a/action-push-rss3/runs/5277409107?check_suite_focus=true