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

Error when extracting deployment transactions of the contracts #20

Open
nicedinner opened this issue Apr 3, 2023 · 2 comments
Open

Comments

@nicedinner
Copy link

When i try to extracting deployment transactions use follow code.
$ rm example/crowdsale/transactions.json # this line is good
$ python3 script/extract.py --proj example/crowdsale/ --port 8545 # this line cause the error

i run into follow error:
/home/cyma/.npm-global/lib/node_modules/truffle/build/4986.bundled.js:329
const isREPL = options?.isREPL ?? false; //default to not displaying REPL commands
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.webpack_require.f.require (/home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:608:28)
at /home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:538:40
at Array.reduce ()
/home/cyma/.npm-global/lib/node_modules/truffle/build/4986.bundled.js:329
const isREPL = options?.isREPL ?? false; //default to not displaying REPL commands
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.webpack_require.f.require (/home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:608:28)
at /home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:538:40
at Array.reduce ()
/home/cyma/.npm-global/lib/node_modules/truffle/build/4986.bundled.js:329
const isREPL = options?.isREPL ?? false; //default to not displaying REPL commands
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.webpack_require.f.require (/home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:608:28)
at /home/cyma/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:538:40
at Array.reduce ()

By the way, i can fuzz the example successfully.
$ python3 -m ilf --proj ./example/crowdsale/ --contract Crowdsale --fuzzer imitation --model ./model/ --limit 2000 #so, this line is good

@EgbertTtTt
Copy link

same questions

@LostBenjamin
Copy link
Collaborator

Hi @nicedinner and @EgbertTtTt,

Sorry for the delay.

These errors are caused by version mismatches. I have put the correct version in the Dockerfile and tested it from my side. Please update the Dockerfile and let me know if it works for you.

Best,
Jingxuan

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

3 participants