nearprotocolnear

SyntaxError: Unexpected token ‘ in JSON at position 0


I was trying to claim the staked $Aurora rewards with NEAR-CLI by following this medium article but when I run the command:

NEAR_ENV=mainnet near call aaaaaa20d9e0e2461697782ef11675f668207961.factory.bridge.near storage_deposit ‘’ --accountId bailey12.near --amount 0.0125

The terminal displayed:

An error occured
SyntaxError: Unexpected token ‘ in JSON at position 0
    at JSON.parse (<anonymous>)
    at scheduleFunctionCall (/usr/local/lib/node_modules/near-cli/commands/call.js:54:84)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.handler (/usr/local/lib/node_modules/near-cli/utils/exit-on-error.js:52:9)
SyntaxError: Unexpected token ‘ in JSON at position 0
    at JSON.parse (<anonymous>)
    at scheduleFunctionCall (/usr/local/lib/node_modules/near-cli/commands/call.js:54:84)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.handler (/usr/local/lib/node_modules/near-cli/utils/exit-on-error.js:52:9) 

Any idea how to recorrect this? Thank in advance.


Solution

  • Use proper single quote ' instead of ’