Skip to content

ReferenceError: New Token is not defined #3

@alanbleier182

Description

@alanbleier182

So I was following the workshop's guide to set up an Orderbook Reserve, but after creating my new token (which I called "Peas", and to which I assigned the ticker "PEA") and running truffle migrate --network development --reset the console says:

Error: ReferenceError: PEA is not defined at Object.run (/home/bleier/.nvm/versions/node/v12.2.0/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:84:1)

This leads me to believe I should declare PEA somewhere in the code, as in 2_deploy_tokens.js:

...
const PEA = artifacts.require('./mockTokens/Peas.sol');
...

and

...
await deployer.deploy(PEA);
...

But nothing about that is mentioned in the guide. Are there any other instances in the code where I should add something related to my newly created Peas? They're a copy of the Mana.sol contract, I just changed the name, symbol and total supply, as per the guide's instructions.

Truffle v5.0.18 (core: 5.0.18)
Node v12.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions