Giter Site home page Giter Site logo

Comments (9)

denisgranha avatar denisgranha commented on July 23, 2024

@mesqueeb can you try MultiSigWalletWithDailyLimit.contract.new instead of MultiSigWalletWithDailyLimit.new if my memory doesn't fail

from multisigwallet.

mesqueeb avatar mesqueeb commented on July 23, 2024

Dear @denisgranha Thank you very very much.
This indeed solved my problem!

I wonder why, because your tests are written without .contract in between!
Do you know the reason?

From your MultisigWallet test:

const deployMultisig = (owners, confirmations, limit) => {
    return MultiSigWalletWithDailyLimit.new(owners, confirmations, limit)
}

from multisigwallet.

mesqueeb avatar mesqueeb commented on July 23, 2024

I'm running this custom testrpc node:

#!/bin/bash

ganache-cli -p 9545 -l 4700000 --account="0x8445abbbcf2911a2db42fced93efe0d7b3172295c99b01a9e02197ff52f30a53,20000000000000000000000000" --account="0x580324cb2abc8029d6eb5a14650a8bd77f48be478c7ece07afd777755070128c,20000000000000000000000000" --account="0x3e478e4fed09cdc68388286b94aeb1404df47b1f1df0de715e582d6aebc6e1c9,20000000000000000000000000" --account="0xa0d45d6a3911221c4e1b7edcd256741c6bcb9a247fda017a8946ff5f5c38021a,200000000000000000000" --account="0x1386ff12f7d49e6e4e835952493d034570e134bfb0fc6f9d17b49dbdf88d03b3,200000000000000000000" --account="0xf84d5b9d64e427d43645e3c12906d322410a87b277374a0335a4ca0da9316d23,200000000000000000000" 

from multisigwallet.

mesqueeb avatar mesqueeb commented on July 23, 2024

@denisgranha Just curious for my own understanding & learning point of view:

What's the difference between MultiSigWalletWithDailyLimit.contract.new instead of MultiSigWalletWithDailyLimit.new. Is this a web3 related thing?
Do you have any recommendation for me to read up on related to this particular behaviour?

from multisigwallet.

mesqueeb avatar mesqueeb commented on July 23, 2024

@denisgranha
A new related bug seems to have appeared.
When trying my setup again today I get: TypeError: Cannot read property 'new' of undefined

So MultiSigWalletWithDailyLimit.contract.new() doesn't exist anymore...

The only difference is that because of Node I had to write these lines in my deploy script inside a try block:

try {
    wallet = await MultiSigWalletWithDailyLimit.contract.new([multisigWalletAddress1, multisigWalletAddress2], 2, multisigWalletDailyLimit)
    console.log(`MultisigWallet: ${wallet.address}`)

Other libraries like truffle shouldn't be changed as I use fixed versions:

npm install -g [email protected]
npm install -g [email protected]
npm install [email protected]

from multisigwallet.

denisgranha avatar denisgranha commented on July 23, 2024

what was the issue @mesqueeb ? :)

from multisigwallet.

mesqueeb avatar mesqueeb commented on July 23, 2024

Solved by deleting the contract keyword again.
This time I didn't get the bug I had initially when calling without the contract keyword.

I'm still not sure what the contract keyword does... I'd love some hint on what contract does! : D

from multisigwallet.

denisgranha avatar denisgranha commented on July 23, 2024

ah ok ^^
So, maybe you should use https://github.com/trufflesuite/truffle-contract in order to load the source code

from multisigwallet.

denisgranha avatar denisgranha commented on July 23, 2024

http://truffleframework.com/docs/getting_started/scripts it's more oriented for set ups, test settings... I would say

from multisigwallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.