Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:27
    xi1570-krupeshanadkat commented #1633
  • 05:26
    xi1570-krupeshanadkat commented #1633
  • 05:19
    xi1570-krupeshanadkat commented #1633
  • 05:18
    xi1570-krupeshanadkat commented #1633
  • 05:17
    xi1570-krupeshanadkat commented #1633
  • 03:18
    flcoder commented #3468
  • 03:18
    haltman-at opened #3908
  • 03:02
    flcoder commented #3468
  • Mar 05 23:46

    fainashalts on 5.2.3

    (compare)

  • Mar 05 23:32

    fainashalts on develop

    Publish - @truffle/compile-so… (compare)

  • Mar 05 18:05
    haltman-at commented #3907
  • Mar 05 15:26
    rkalis synchronize #3893
  • Mar 05 15:26

    rkalis on truffle-preserve-to-filecoin

    Small changes to tests Add storage deal options & more… (compare)

  • Mar 05 15:09
    davidmurdoch commented #3510
  • Mar 05 14:10
    flcoder commented #2371
  • Mar 04 22:55
    cds-amal assigned #3895
  • Mar 04 20:25
    gnidan reopened #737
  • Mar 04 09:15
    elenadimitrova commented #737
  • Mar 04 08:37
    elenadimitrova commented #737
  • Mar 04 08:06
    elenadimitrova commented #737
Mehdi Khalilzadeh
@mkhalilzadeh_gitlab
Hi, I'm running "truffle test" on mac and getting the bellow error:
Mehdi Khalilzadeh
@mkhalilzadeh_gitlab
Error: Cannot find module '@truffle/db'
Require stack:
- /usr/local/lib/node_modules/truffle/build/cli.bundled.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
    at Function.Module._load (node:internal/modules/cjs/loader:768:27)
    at Module.require (node:internal/modules/cjs/loader:995:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.168060 (/usr/local/lib/node_modules/truffle/build/webpack:/external "@truffle/db":1:1)
    at __webpack_require__ (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap:18:1)
    at Object.577135 (/usr/local/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:12:28)
    at __webpack_require__ (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap:18:1)
    at Object.952422 (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/testing/Test.js:9:25)
    at __webpack_require__ (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap:18:1)
    at prepareConfigAndRunTests (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/test/prepareConfigAndRunTests.js:3:16)
    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/test/index.js:192:1)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:136:1)
Truffle v5.2.1 (core: 5.2.0)
Node v15.9.0
Mehdi Khalilzadeh
@mkhalilzadeh_gitlab
I'm new to truffle and don't know what's wrong. Could u please help me?
g. nicholas d'andrea
@gnidan
hm @mkhalilzadeh_gitlab sounds like a bug. could you open a GH issue please? in the meantime, please downgrade to 5.1.67
coin77
@coin77
How can I change account ownership in truffle tests? By default the owner is accounts[0]. I would like to change ownership to accounts[1]. Want to make first a transfer from accounts[0] to accounts[1] and then the revert from accounts[1] to accounts[0].
coin77
@coin77
In transferFrom() of an ERC721.
Nathan Seva
@Thykof
Ownership of the contract or the toke ?
If token: transferFrom(accounts[1], acounts[0], tokenId, {from: accounts[1]})
coin77
@coin77

Ownership of the contract or the toke ?

Still get the following exception/revert with transferFrom(accounts[1], acounts[0], tokenId, {from: accounts[1]}): Returned error: VM Exception while processing transaction: revert Ownable: caller is not the owner -- Reason given: Ownable: caller is not the owner.
I am testing with truffle and ganache-cli. The default account is accounts[0]. How can I change to accounts[1]?

@Thykof
jimmy?
@jimmytheshroom_twitter
having the same issue as @mkhalilzadeh_gitlab ... downgrading I guess
jimmy?
@jimmytheshroom_twitter
seems to be a bug with the latest version
g. nicholas d'andrea
@gnidan
yeah sorry about that @jimmytheshroom_twitter, working on the fix currently
should be out tonight (in the next 1-2 hours)
jimmy?
@jimmytheshroom_twitter
no worries thank you!
g. nicholas d'andrea
@gnidan
@jimmytheshroom_twitter @mkhalilzadeh_gitlab the issue should now be fixed in Truffle v5.2.2 (release notes)
Vishwas Anand Bhushan
@Vishwas1
Hi guys I am trying to deploy a ERC20 contract with token supply of 50million and with 18 decimals. But I get error in migration script saying Error: Error: [number-to-bn] while converting number "5e+25" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance.. Here is my script. module.exports = function(deployer) { const t = config.TOTAL_SUPPLY * Math.pow(10, config.DECMALS); deployer.deploy(HID, Web3Utils.toBN(t.toString())); }; This problem does not comes when I deploy using Remix IDE. Could any one help where I am missing ? My current setup is: Truffle v5.2.0 (core: 5.2.0), Node v13.12.0, Solc: 0.6.2
Vishwas Anand Bhushan
@Vishwas1
Nevermind I used Bignumber.js library and it is fixed. Thank you
Mehdi Khalilzadeh
@mkhalilzadeh_gitlab
Hi, @gnidan. I faced another error while using the leatest version. downgrade to 5.1.67 solved the problem.
Error: Cannot find module 'fs-extra'
Require stack:
- /usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/debugger.js
- /usr/local/lib/node_modules/truffle/build/cli.bundled.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
    at Function.Module._load (node:internal/modules/cjs/loader:768:27)
    at Module.require (node:internal/modules/cjs/loader:995:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.call (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/external "fs-extra":1:18)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/compile-common/dist/src/profiler/updated.js:33:26)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/compile-common/dist/src/profiler/profiler.js:20:19)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/compile-common/dist/src/profiler/index.js:3:18)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/compile-common/dist/src/index.js:25:18)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/debugger/lib/session/index.js:31:1)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/debugger/lib/debugger.js:4:1)
    at r (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at Object.call (/Users/gnidan/src/work/truffle/packages/debugger/debugger.js:2:16)
    at __webpack_require__ (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:19:22)
    at /usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/bootstrap:83:10
    at factory (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/debugger.js:1:1152)
    at /usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/universalModuleDefinition:3:20
    at Object.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/@truffle/debugger/dist/webpack/universalModuleDefinition:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1091:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
    at Module.load (node:internal/modules/cjs/loader:971:32)
    at Function.Module._load (node:internal/modules/cjs/loader:812:14)
Truffle v5.2.2 (core: 5.2.2)
Node v15.9.0
coin77
@coin77

How can I test (truffle test or development console) the following:

await nft.transferFrom(accounts[0], accounts[1], 1);
await nft.transferFrom(accounts[1], accounts[0],1);

The second line throws

ERC721: transfer caller is not owner nor approved

If I change to
await nft.transferFrom(accounts[1], accounts[0],1,{from: accounts[1]});

the following exception is thrown:

Ownable: caller is not the owner

How can I test a transfer from another account then accounts[0]?

tyler
@eggplantzzz
@mkhalilzadeh_gitlab What are you doing to get that error? Can you give me some reproduction steps?
tyler
@eggplantzzz
@coin77 Could you provide your code and steps to reproduce your error?
JML
@JML999
Hi guys - I have been trying to get my eth dev environment up and running all day. I keep running into the same issues installing truffle.
12 replies

npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (visionmedia/debug#797)

changed 60 packages, and audited 136 packages in 24s

33 packages are looking for funding
run npm fund for details

3 high severity vulnerabilities

To address all issues, run:
npm audit fix --force

Run npm audit for details.

This is my terminal output after I run the npm command. I have no clue what I am doing wrong, could somebody please provide guidance?
eyooooo
@eyooooo
hey does this channel offer Ganache support as well?
8 replies
ethereal1m
@ethereal1m
hello, I try to enable truffle logging by doing "truffle develop --log", however the console doesn't spew anything. I try to fix it by uninstalling reinstalling truffle, but got bunch of deprecation errors. For example "npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that". npm audit fix doesn't fix the error, the errors still persist. Does the log error have anything to do with deprecation error? How can I fix this? regards
Mehdi Khalilzadeh
@mkhalilzadeh_gitlab
@eggplantzzz I uploaded part of my code to reproduce the error.
Mikhail Melnik
@ZumZoom
Hey guys. I'm currently trying to deploy some stuff to Optimism testnet using truffle migrations. Any transaction attempt fails with "Cannot submit unprotected transaction". Seems like Optimism nodes reject pre-eip-155 signatures to force replay protection and it seems that truffle still does not support eip-155 signatures. Is there any workaround for this?
tomaz bracic
@tomazbracic_twitter
Hi
I am trying to migrate a contract to Quorum with Truffle v.5.2.2
but it never passes the 01_initial_migration.js
tomaz bracic
@tomazbracic_twitter
i did put in truffle-config.js under network configuration with parameters like (host, port, network_id: "*", gasPrice: 0 and type: "quorum"
and gas: 4500000
as it would go to an endless loop
andy idea? someone experienced the similar thing?
tomaz bracic
@tomazbracic_twitter
I can see in Cakeshop under node data... RPC Url is like localhost:22000
shouid it be like IP like ... 192.168.22.13:22000?
tyler
@eggplantzzz
@mkhalilzadeh_gitlab Thanks for the code, I get a syntax error attempting to compile. How are you generating the error? Please be very specific when giving your steps.
Derrick Hammer
@pcfreak30
I have googled but I am suddenly getting a migrate hanging on the migrate contract. im using geth via grid on mainnet and ganache with forking on so I can do experiments. A the --verbose-rpc gives nothing.
SHAILENDRA OMKAR
@shailendrakumaromkar

Im using Win10 & getting below error
tried below command as well
npm un -g truffle
npm i -g truffle
Can anyone suggest solution for this

PS C:\Data\Blockchain\TruffleTest> truffle console
truffle : The term 'truffle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1

  • truffle console
  • ~~~
    • CategoryInfo : ObjectNotFound: (truffle:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
kombos
@kombos
@shailendrakumaromkar try opening a new powershell / terminal session and trying the command again.
SHAILENDRA OMKAR
@shailendrakumaromkar

Still same error

PS C:\Data\Blockchain\TruffleTest> truffle console
truffle : The term 'truffle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1

  • truffle console
  • ~~~
    • CategoryInfo : ObjectNotFound: (truffle:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
kombos
@kombos
guys, anyone has implemented connect button with drizzle library for their ethereum dapp ? how do we change the web3provider for drizzle on the fly?
1 reply
francovilla
@francovilla
Hi devs!

I do migration of my contracts with .new( ) declaration ... (Truffle)

But in Artifacts the network information, the address of the contract and etc ... does not appear

How can I make the Artifacts look the same as if I did it with .deploy( )?

1 reply
VB
@helios1989
anyone here encounter :
Mnemonic invalid or undefined when running truffle migrate --network ropsten