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

Windows messes things up #20

Open
ChrisHoffmann96 opened this issue Apr 19, 2021 · 2 comments
Open

Windows messes things up #20

ChrisHoffmann96 opened this issue Apr 19, 2021 · 2 comments

Comments

@ChrisHoffmann96
Copy link

Hi,

im tryting to push a transaction to the chain using your framework - thanks for that btw - in Windows.
eos.push_transaction('eosio.token', 'transfer', 'x', 'active', {'from': 'x', 'to': 'y', 'quantity': '0.1 WAX', 'memo': ''} )

which works fine on mac, but on windows i get this weird error:

eosjs_python.Exceptions.PushContractTransactionException: b"undefined:1\r\n'{from:\r\n^\r\n\r\nSyntaxError: Unexpected token ' in JSON at position 0\r\n at JSON.parse ()\r\n at Object. (paths\eosjs_python\js\PushContractTransaction.js:10:26)\r\n at Module._compile (internal/modules/cjs/loader.js:1063:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)\r\n at Module.load (internal/modules/cjs/loader.js:928:32)\r\n at Function.Module._load (internal/modules/cjs/loader.js:769:14)\r\n at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)\r\n at internal/main/run_main_module.js:17:47\r\n"

Which kinda looks like a windows line ending error. But I don't really know how to fix this cause the error gets thrown within the eosjs_python module.
Any help would be appreciated!

@ChrisHoffmann96
Copy link
Author

Noone?

@ChrisHoffmann96
Copy link
Author

I did some debugging, and after parsing arguments in push_transaction of init.py, the argument string looks like that:

'https://wax.greymass.com' '1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4' 'private_key_here' 'e.rplanet' 'transfer' 'hypercruse45' 'active' '{"from": "hypercruse45", "to": "a.rplanet", "quantity": "10000.0000 AETHER", "memo": "buy:10000,EARTH"}'

which looks fine, but I'm still getting the error mentioned above

Any help would be appreciated!

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

No branches or pull requests

1 participant