Truffle: Latest Truffle breaks our box

Created on 6 May 2020  路  9Comments  路  Source: trufflesuite/truffle

Issue

Our flashloan-box worked previously with Truffle v.5.10. It no longer works in latest Truffle.

Steps to Reproduce

Our Flashloan-box: https://github.com/aave/flashloan-box

  1. Using Truffle v.5.10, follow instructions of box. Everything should work.
  2. Using latest Truffle version, follow instructions.
  3. It fails on Step 8, when defining const f = await Flashloan.deployed()

Expected Behavior

It should work as previous Truffle version.

Actual Results

Errors with ReferenceERrror: f is no defined

Environment

  • Operating System: macOS
  • Ethereum client:
  • Truffle version (truffle version): 5.1.24
  • node version (node --version): 11.15
  • npm version (npm --version): 6.14.4
bug needs reproduced priority2 鈿狅笍

All 9 comments

Thanks for reporting this! We'll take a look.

I've also confirmed this bug is still present on the latest v.5.1.25 release.

Confirmed with ubuntu-18.04 on node v10.20.1.

tried anything else then f? may be that it is conflicting with an other variable.
It said just undefined in colored italic text after the declearing of the variable.

Thanks for the suggestion @coinmaster4you. I'll give it a try.

Any updates on this issue?

@mrdavey I just unsuccessfully tried to reproduce the error. Step 8 succeeded for me using truffle@latest.

I got an issue at Step 5:

truffle console --network kovan

@truffle\hdwallet-provider\node_modules\web3-providers-http\src\index.js:96
callback(error, result);
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: project ID is required

at .....\node_modules\@trufflesuite\web3-provider-engine\subproviders\provider.js:18:36


I'm using:
Truffle v5.1.32 (core: 5.1.32)
Solidity - ^0.6.6 (solc-js)
Node v14.4.0
Web3.js v1.2.1
@truffle/[email protected]

Thanks @CruzMolina . I've checked and confirm that it is working now with latest Truffle version.
@leonardobastos please open another issue if this is still happening with you. It may have been a temporary Infura issue.

Closing this issue.

Was this page helpful?
0 / 5 - 0 ratings