hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 19:06:14 Jun 24, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Problem with migrate command while executing the Fibonacci program

zak100zak100 Member Posts: 6
I am following the description provided on the web page:
I am trying to execute the “migrate” command on the truffle. It says Reference Error and also gives syntax error:

truffle(development)> migrate
Using network 'development'.

Running migration: 1_initial_migration.js
Deploying Migrations...
... 0xe37cab98f7bf2521ea31290f8cd831ec68a8a4a2f534bc7008da64daa28fecf3
Migrations: 0xee9e0e26e6542949d3c32ef2ef8041c68d5bacd8
Saving successful migration to network...
... 0x46e510bfa2fcd87c45c286ae843ed524699988cf8ea882cff7f702a1ccae9564
Saving artifacts...
Running migration: 2_deploy_contracts.js
Deploying Fibonacci...
... 0x37ff19549fb84e23a323e5551393111e8d4164259612c1b989450b2c72ca1417
Fibonacci: 0x062f46a381166602baa7692a1686b7fb0b2ff7e2
Saving successful migration to network...
... 0x13bdf5882017d6284928bd4462d365f0330580536e56576d667423dd512ddedf
Saving artifacts...
truffle(development)> truffle(development)> migrate
ReferenceError: truffle is not defined
truffle(development)> Using network 'development'.
Using network 'development'.

SyntaxError: Unexpected identifier
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInContext (vm.js:284:10)
at Console.interpret (C:\Users\HP\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:94589:17)
at ReplManager.interpret (C:\Users\HP\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:95306:18)
at bound (domain.js:396:14)

Instead of Fibonacci folder, I am using Fibonacci2 folder and also started the testrpc.

Some body please guide me.


Sign In or Register to comment.