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

ReferenceError: Asset is not defined #5

Open
revinco opened this issue Apr 28, 2020 · 2 comments
Open

ReferenceError: Asset is not defined #5

revinco opened this issue Apr 28, 2020 · 2 comments

Comments

@revinco
Copy link

revinco commented Apr 28, 2020

on "Token" and "EthSwap" deployment 'contract has a name', i get following error; "ReferenceError: asset is not defined" after compiling all .sol contracts successfully on EthSwap.test.js

https://i.imgur.com/CPlL74r.png

Any idea what went wrong? I'm like 1hr in the YT tutorial already.... do I need to add a missing method (import)?

@gorgos
Copy link

gorgos commented May 3, 2020

asset => assert

@revinco
Copy link
Author

revinco commented May 3, 2020

asset => assert

Ty so much! And the "TypeError: ethSwap.buyTokens is not a function"? I tried with 'EthSwap' big but no success, so i dont know where the typo is.

  describe('buyTokens()', async () => {
    it('Allows user to instantly purchase tokens from ethSwap for a fixed price', async () => {
      await ethSwap.buyTokens({ from: accounts[1], value: '1000000000000000000'})
    })
  })
})

Is there any appropriate help forum (irccloud, telegram, web) where we can get realtime free support?

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

2 participants