Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [truffle-console]

The tag has no usage guidance.

0
votes
1answer
28 views

Retrieve specific account in truffle 5 console

I am following a truffle tutorial where the individual users web3.eth.accounts to retrieve all the accounts from Ganash. However that seemed depreciated and to duplicate his results I used web3.eth....
2
votes
1answer
31 views

What is the best way to test calling a contract's function from another contract?

I'm playing around w/ Gnosis' MultiSigWallet and noticed in their replaceOwner function it has a modifier that requires msg.sender to be the MultiSigWallet contract itself: modifier onlyWallet() { ...
0
votes
1answer
48 views

How to interact with a MainNet contract from a console?

This question may be really dumb, but I fail to understand how to do this. I have deployed a smart contract to MainNet, and so far I've been interacting with it via Web3JS and Truffle (via the ...
0
votes
2answers
109 views

Calling Truffle Commands through a script

I made following contract using visual studio code pragma solidity ^0.4.17; contract IDSCheck { mapping( string => string ) PersonHash; function AddHash(string name, string hash) { ...
0
votes
2answers
39 views

Got Error: TokenCreate has not been deployed to detected network (network/artifact mismatch) [closed]

truffle.js module.exports = { networks: { development: { host: "127.0.0.1", port: 8545, network_id: "*" // Match any network id } } }; ...
0
votes
1answer
162 views

Truffle Exec Gets Stuck [closed]

I want to exec a script in the truffle console. script const artifacts = require('./build/contracts/Message.json') const contract = require('truffle-contract') const Message = contract(artifacts); ...
0
votes
0answers
59 views

Connecting to Truffle Develop's Console?

You can create a local Truffle instance of the Blockchain, connect to it with the console, deploy your Smart Contracts, and monitor its log via the following commands. Terminal Tab 1: truffle ...
1
vote
1answer
334 views

Calling a payable contract function from truffle console [duplicate]

Let's say I have this function is a contract, that should enable users to deposit ETH into the contract, and have the contract manage their deposits function deposit() payable public { balances[...