トラフルコンソールのコントラクトの関数を正しく呼び出すにはどうすればいいですか? petshopのサンプルプロジェクトを使用して、契約をネットワークに正常に移行しました。トリュフコンソールで 私が実行:これは、応答が得られる var ad = Adoption.deployed()
: undefined
Iはad.adopt(23)を実行します。関数名であることを採用し、23はユニットパ
私はトリュフのペットショップをインストールします。 truffle(develop)> migrate
Using network 'develop'.
Network up to date.
truffle(develop)> test
Using network 'develop'.
0 passing (0ms)
あなたが次に何をすべきかを教えてもらえますか?
contract FirstContract {
function createOtherContract() payable returns(address) {
// this function is payable. I want to take this
// value and use it when creating an instance of