Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:29
    gnidan commented #2766
  • 18:23

    CruzMolina on istanbul-support

    (compare)

  • 18:23

    CruzMolina on develop

    Upgrade dependency: ganache-cor… bump postinstalled & default in… Upgrade dependency: solc@0.5.16… and 5 more (compare)

  • 18:23
    CruzMolina closed #2766
  • 18:01

    CruzMolina on alphaTez

    add support for secret key acco… Publish truffle@alphaTez (compare)

  • 17:55
    CruzMolina synchronize #2766
  • 17:55

    CruzMolina on istanbul-support

    update tests for istanbul (chea… test latest geth in CI unlock geth w/ istanbul activat… (compare)

  • 16:58

    fainashalts on v5.1.9

    (compare)

  • 16:51
    CruzMolina review_requested #2766
  • 16:44

    fainashalts on v5.1.9

    (compare)

  • 14:49
    CruzMolina synchronize #2766
  • 14:49

    CruzMolina on istanbul-support

    update tests: revert to asserti… test latest geth in CI unlock geth w/ istanbul activat… (compare)

  • 06:59
    anidhya commented #2690
  • 06:06
    CruzMolina synchronize #2766
  • 06:06

    CruzMolina on istanbul-support

    Upgrade dependency: solc@0.5.16… update tests (@truffle/contract) update tests: revert to asserti… and 2 more (compare)

  • 06:04
    CruzMolina synchronize #2766
  • 06:04

    CruzMolina on istanbul-support

    Upgrade dependency: solc@0.5.16… update tests (@truffle/contract) update tests: revert to asserti… and 2 more (compare)

  • 05:59
    CruzMolina synchronize #2766
  • 05:59

    CruzMolina on istanbul-support

    unlock geth w/ istanbul activat… (compare)

  • 05:25
    CruzMolina synchronize #2766
Pierre Martin
@hickscorp
I never used a UI or a passphrase, I used a Bip39 utility, generated a bunch of private and public key pairs, and got them verbatim.
phalexo
@phalexo
at least that is how it works with Mist
Pierre Martin
@hickscorp
That's very interesting lol
Mist? I don't use Mist :D
phalexo
@phalexo
You must have something similar
Pierre Martin
@hickscorp
ganache-cli
It outputs 10 accounts given a mnemonic. They are not encrypted.
phalexo
@phalexo
When I use Truffle, I pass the account, passphrase, number of seconds to unlock
Pierre Martin
@hickscorp
Yeah you don't use direct private keys.
phalexo
@phalexo
You are talking about the test accounts.
Pierre Martin
@hickscorp
I have an array of clear private keys that I pass to my HDWalletProvider as its first argument.
What no!
Haha
phalexo
@phalexo
I am not certain if you are trying to interact with a real chain or the test chain ganache sets up.
Pierre Martin
@hickscorp
A real chain. It doesn't have hot wallets on the node I'm hitting.
I was under the impression that HDWalletrProvider was migrated to check its first argument, and if it was an array, use it raw as private keys.
phalexo
@phalexo
Are you using Truffle?
Pierre Martin
@hickscorp
Yes
Metamask is able to hit the same chain.
Let me see if these private keys are in fact private keys.
Yep there's no doubt about it.
I'll see whether these keys have been exported with an empty password - that might be an option.
Thanks @phalexo this is a very good lead you gave me!
Andrew B Coathup
@abcoathup

Currently ganache-cli displays 10 Available Accounts not checksummed.

Available Accounts
==================
(0) 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1 (~100 ETH)

Is it possible to change the public addresses to be displayed as checksummed versions instead?

Available Accounts
==================
(0) 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 (~100 ETH)
Pierre Martin
@hickscorp
@abcoathup It's a good question, I was looking for that myself recently.
@abcoathup Can you please report back if you find a solution on your own?
Watt Erikson
@Watt3r

Im having a small problem with my truffle tests, I have a solidity function with an input of uint256[2][4][]. When I test this function with

const geoPoint = [[[123456,112345],[123456,112345],[123456,112345],[123456,112345]],[[123456,112345],[123456,112345],[123456,112345],[123456,112345]]];
await contractInstance.createLocation(geoPoint);

An error occurs;
Error: Error: [number-to-bn] while converting number ["123456","112345"] to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "123456,112345"

I have tried different numbers, wrapping the numbers in quotes, using small numbers, but to no avail. I have tested my code with web3 and it works without errors. Any help about this?

Elliot Olds
@elliotolds

I'm noticing something super weird in my javascript tests for my contract:

console.log("bal1: " + (new utils.BN(await web3.eth.getBalance("0x0000000000000000000000000000000000000000"))));
let tx = await agreementManagerInstance.submitEvidence(agreementID, evidence, {from: caller});
console.log("bal2: " + (new utils.BN(await web3.eth.getBalance("0x0000000000000000000000000000000000000000"))));

bal2 ends up a little more than 2 ETH higher than bal1. This happens for every contract function I call. None of my contract functions send any funds to address 0x0. Many of them don't deal with funds at all. Why does the balance of 0x0 continually increase when I run the truffle javascript test suite?

Patryk Matuszewski
@patrykmat

I have a problem in Drizzle => when I get an instance of contract by props, I can only see constant methods, cannot call mutable methods. In the document , it says that I can call something like that:

contracts.SimpleStorage.methods.storedData.cacheCall()

But there is no methods property in my case

Patryk Matuszewski
@patrykmat
Nevermind, I need to use a contract instance from Context, not from State
Andrew B Coathup
@abcoathup
@hickscorp I have created an issue trufflesuite/ganache-cli#657
aniu
@AniuHero_twitter
hello, i have a question. when i add a truffle-config.js, ganache got stuck
it is too slow
odv
@odv

Hi! When trying to deploy to Rinkeby, truffle migrate --network rinkeby outputs :

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

My truffle-config file is set in the same way as https://github.com/amateur-dev/truffle-pet-shop/blob/master/truffle-config.js with Infura. I have the mnemonic, infura URL set and the account has ETH on Rinkeby. How can I debug this?

Mehmet Doğan
@mdogan93
you probably already migrated your contracts
can you try with truffle migrate --network rinkeby --reset
aniu
@AniuHero_twitter
TypeError: Path must be a string. Received null
at assertPath (path.js:28:11)
at Object.extname (path.js:908:5)
at ProjectFsWatcher.handleContractFileEvent (C:\Program Files\WindowsApps\Ganache_2.0.1.0_x64zh355ej5cj694\app\resources\app.asar\src\truffle-integration\projectFsWatcher.js:155:28)
at FSWatcher.contractBuildDirectoryWatcher.fs.watch (C:\Program Files\WindowsApps\Ganache_2.0.1.0_x64
zh355ej5cj694\app\resources\app.asar\src\truffle-integration\projectFsWatcher.js:186:16)
at emitTwo (events.js:125:13)
at FSWatcher.emit (events.js:213:7)
at FSEvent.FSWatcher._handle.onchange (fs.js:1376:12)
what does this means?
thanks.
odv
@odv
@mdogan93 Thanks. I tried with --reset and same output.
@mdogan93 I don't think that is the case because on the Etherscan I have no contract transaction.
phalexo
@phalexo
@sh4d0v1 Still trying figure out how to access deployed contracts' APIs, or you've figured it out?
sh4d0v1
@sh4d0v1
@phalexo yeah I figured it out.. that JS stuff is strange shit to me
Axelatron
@mouyiassis
Capture.JPG
how can i solve this error?
i tried to downgrade truffle also
Axelatron
@mouyiassis
its either out of block gas limit or vm exception when i change gas
chazapp
@chazapp
Hey guys, first time playing with Solidity and Truffle. How should I manage github dependencies in my smart contract ? Should i clone the repositories myself next to my contracts ?
Pierre Martin
@hickscorp
@chazapp No, you should have references in your solidity files to ../node_modules/...