Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:17
    Vasiliy-Bondarenko commented #2257
  • 07:11
    KBriverun edited #2481
  • 07:10
    KBriverun opened #2481
  • 05:04
    coveralls commented #2480
  • 04:54
    CruzMolina synchronize #2480
  • 04:54

    CruzMolina on adapterStepTwo-getNetworkId

    test reworked code (compare)

  • 04:40
    CruzMolina synchronize #2480
  • 04:40

    CruzMolina on adapterStepTwo-getNetworkId

    test reworked code (compare)

  • 03:39
    coveralls commented #2480
  • 03:16
    CruzMolina synchronize #2480
  • 03:16

    CruzMolina on adapterStepTwo-getNetworkId

    log for debugging (compare)

  • 03:02
    CruzMolina synchronize #2480
  • 03:02

    CruzMolina on adapterStepTwo-getNetworkId

    log for debugging (compare)

  • 02:59
    haltman-at synchronize #2467
  • 02:59

    haltman-at on codec-docs-text

    Address various review comments… (compare)

  • 02:44

    fainashalts on linked-bytecode

    Add callBytecode in new format … Fix workspace schema for callBy… Add callBytecode to loader and 3 more (compare)

  • 00:36
    coveralls commented #2480
  • 00:24
    coveralls commented #2480
  • 00:13
    CruzMolina synchronize #2480
  • 00:13

    CruzMolina on adapterStepTwo-getNetworkId

    update fabric-evm test to use I… yarn add -D @truffle/interface-… (compare)

Try uninstalling npm and then following the instructions in the link above to install it and use it with nvm.
I'm not 100% certain that it will resolve your particular error but it often does resolve permissions issues and stuff that appears kind of similar to what you are experiencing.
tyler
@eggplantzzz
@aniemerg Ok I found the cause of the bug which is related to the fact that there is no contract declared in Imports.sol :) I'll try and get a fix in for next weeks release!
Andrey Murashkin
@murich
Aha! Thank you tyler
I'll give it a try
tyler
@eggplantzzz
I hope it is successful!
Err I meant, use npm with nvm above
I'll correct it
Allan Niemerg
@aniemerg
@eggplantzzz Awesome! Any suggested workaround? (My current work around is to maintain multiple repo directories for different purposes. Not ideal, but tolerable.)
Saurav Shekhar
@sauravs
sendTrx Issue.png
send Tx Issue2.png
carbon(1).png
does anybody help me figuring out why I am getting failed transaction here?What does this error means? Few days back,with the same line of code,I was able to successfully send transactions
Hargobind Gupta
@Yara1990
Compilation failed. See above.
at Object.compile (/usr/local/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/legacy/index.js:72:1)
Can anyone help me fix the above error
Pierre Martin
@hickscorp
@eggplantzzz Done, trufflesuite/truffle#2472
tyler
@eggplantzzz
@aniemerg This should be fixed in next week's release. Usually that happens Thursdays. In the meantime, do you need to have Imports.sol?
Saurav Shekhar
@sauravs
Hi,this is my update to my yesterday query that I had raised here,that is "does anybody help me figuring out why I am getting failed transaction here?What does this error means? Few days back,with the same line of code,I was able to successfully send transactions" ------- > With same code and setup I am able to successfully send transactions via MetaMask on chrome browser.But on Mozilla Firefox ,I am getting failed transactions. Seems like some issue with its compatibility with firefox? (Though couple of days back I was able to successfully send transactions on my firefox browser too)
tyler
@eggplantzzz
Oh man, those transactions failing could be anything. Make sure you have all your MetaMask configurations correct and pointed to the correct network as well as the appropriate accounts available etc.
If you give me some code and specific repro steps I would take a look for you.
Divyanshu Maurya
@divyanshu1610
Hello , I've recently forked the truffle repo and did some changes in truffle/packages/core/cli.js . How do I test these changes ? Do i have to publish whole project in npm in order to test ?
Hadrien Croubois
@Amxx
By default, truffle migration deploys the contract using a wallet, and saves the deployed contract address so that the .deployed() can be used later on. During my deployments, I want to use a create2 factory (https://etherscan.io/address/0xfac100450af66d838250ea25a389d8cd09062629) to ensure better address predictability between chains. I know how to deploy the contract using the factory myself, but is there a way to tell the deployer that it was deployed, so I can use .deployed() later on? Would it be easier to reconfigure the deployer???
g. nicholas d'andrea
@gnidan
@divyanshu1610 you can run node <path/to/packages/core/cli.js> <command> instead of truffle <command>
Ada922
@Ada922
Bank of America won the DerivHackathon, I heard they are starting to build on Algorand's network is this true?
Alex Zanfir
@AlexZan

any idea why my gas estimation is not working?
AssertionError: expected '99414900000000000' to equal '99894000000000000'

for my test

        it('refund if expired', async () => {

            await goal.Fund({ value: web3.utils.toWei('0.1'), from: randomAccount });
            const balanceTracker = await balance.tracker(randomAccount);

            const gas = await web3.eth.estimateGas(goal.RequestRefund({ from: randomAccount }))
            const gasPrice = await web3.eth.getGasPrice()
            const gasCost = gas * gasPrice

            const totalRefund = web3.utils.toWei('0.1') - gasCost;

            (await balanceTracker.delta()).should.bignumber.equal(totalRefund.toString());

        })
Alex Zanfir
@AlexZan
I tried
            const tx = await goal.RequestRefund({ from: randomAccount })
            const gasPrice = await web3.eth.getGasPrice()

            const gasCost = tx.receipt.gasUsed * gasPrice
for an even weirder response: expected '99414900000000000' to equal '99941490000000000'
Alex Zanfir
@AlexZan
figured it out, gas price is off by 10 :s
Kifen
@Kifen
Please what is the correct network configuration required in truffle-config.js when trying to compile and migrate a contract on a test network like rinkeby, instead of a local network. When I run truffle migrate, I think truffle deploys contract on a local network - I say this because the networks field present in the generated [contracts].json points to a local network:
 "networks": {
    "5777": {
      "events": {},
      "links": {},
      "address": "0xeBB7243ceDA8a5BC57949Cb99Db62907BEE6B00B",
      "transactionHash": "0xb1eef90111b7e296e70f1f82a9e86a3c3fbb730ee78a2b7b546164745dfb58a1"
    }
  },
Kifen
@Kifen
In my contract.sol, I have two contracts - one is a factory (or parent contract) that on calling a function, it deploys the second contract (or child contract) and saves the deployed child address to an array of addresses. Calling the function to deploy the child contract works, but when I try to get the address of the newly deployed child contract by calling a function in the parent contract that returns an array of deployed child contract' addresses, I get the error: "Returned values aren't valid, did it run out of gas?" . Note that it works properly on remix.
Hans Tjipto
@hanstf

Hi all,
I am having different error in ganache-cli than in testnet (SOKOL from POA net)
This also causing the promise to be resolved in truffle-contract
this is what I am getting in ganache

{
      "stack": "n: Exceeds block gas limit\n    at k._queueTransaction (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:578780)\n    at k.queueRawTransaction (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:577344)\n    at b.eth_sendRawTransaction (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:567858)\n    at b.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:564744)\n    at t (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439038)\n    at a.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:563051)\n    at t (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439038)\n    at c.f.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:556029)\n    at c.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:553855)\n    at t (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439038)\n    at s.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:562065)\n    at t (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439038)\n    at a.handleRequest (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:561512)\n    at t (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439038)\n    at d._handleAsync (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:439074)\n    at Timeout._onTimeout (/home/hanstf/Documents/projects/erc721-smartcontract-lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:37:438499)",
      "name": "n"
    }

This is what I am getting in testnet

   { code: -32010,
      message:
       'Transaction cost exceeds current gas limit. Limit: 8015630, got: 123232323. Try decreasing supplied gas.' }

Anyone knows why ?

swkim109
@swkim109
@AlexZan Why don't you use web3.utils.BN? Use mul instead gas * gasPrice Here is example:
const a = new this.BN(this.getWinningAmount(web3.utils.toWei(val.toString(), "ether")));
const b = new this.BN(amount.toString());
assert(a.eq(b), "Winning amount is not the expected value");
Johannes Mayer
@codingyourlife
Guys I have a question... I use truffle-config.js to set a gasLimit to notice too big contracts during development time. I usually set gas value to 8mio. according to the documentation here https://www.trufflesuite.com/docs/truffle/reference/configuration it is called gas but it is the gasLimit. For some reason the default value from the documentation 6721975 still work for me but a value like 8mio or just change first number from 6 to 8 does not work. But it is a limit why shouldn't it work? I'm certain this worked before. What am I missing here?
swkim109
@swkim109
@codingyourlife Did you check the gas limit in Ganache(or your Ethereum client)? The default value of Ganache UI(v2.1.1) is 6721975. If you start the gas of 8 mio, you will get "exceeds gas limit".
theMoe
@theMoe

I tried to deploy a smart contract via truffle to a private PoA Etherum chain at azure cloud with latest truffle and hdwallet-provider. I get this error:

⠹ Saving migration to chain.

Error: Error: Error: The execution failed due to an exception.
    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:96:1)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.0.41 (core: 5.0.41)
Node v10.16.3

Does someone has an idea, what this error means?

JoranHonig
@JoranHonig
Is it possible/ is there a command that allows me to run a single specific unit test. Rather than the entire file where this unit test lives?
swkim109
@swkim109
@JoranHonig maybe it.only( ...)?
JoranHonig
@JoranHonig
How would that work? I'd like to have something like truffle test UniqueTestIdentifier where it then executes this specific test. Similar to how you can use truffle test ./path/to/test/file.js
swkim109
@swkim109
@JoranHonig I don't know there is a way you said but it.only runs the only unit test case in the test file. Check Mocha(truffle test framework) help page.
tyler
@eggplantzzz
@Kifen You probably want to use something like @truffle/hdwallet-provider. Check out the provider docs https://www.trufflesuite.com/docs/truffle/reference/configuration#providers
@theMoe Maybe you need to check your code for an error...do your migrations work in truffle develop?
@JoranHonig I don't think you currently can run a specific test in a test file. Is there an option that you can pass to mocha (in general) that allows for this?
Git-on-my-level
@Git-on-my-level

Hey everyone, I'm running into an issue where my ropsten migration only compiles but does not actually deploy, the last output of truffle migrate --reset --network ropsten is:

> Compiled successfully using:
   - solc: 0.5.11+commit.c082d0b4.Emscripten.clang

A similar issue I found online: https://ethereum.stackexchange.com/questions/68817/truffle-migrate-network-ropsten-issues

Johannes Mayer
@codingyourlife
@swkim109 this sounds reasonable. thanks!
tyler
@eggplantzzz
@Git-on-my-level Can you show me your truffle-config.js? Usually this happens when there is some issue with the provider.
Also, what version of Truffle are you using?
Git-on-my-level
@Git-on-my-level
@eggplantzzz Your tip on checking the provider was great! Updating truffle-hdwallet-provider solved the problem for me, thanks!
tyler
@eggplantzzz
Cool! Make sure to use @truffle/hdwallet-provider as that is the newest version of that package @Git-on-my-level
@theMoe Do your migrations work when using ganache?