[EOS]smart contract 작성시 print가 찍히지 않을 경우

in #eos6 years ago (edited)

smartcontract 를 실행했을때 아래와 같이 print가 출력되지 않는 경우가 있는데,

okayjava@EOS-VM1:~/eos/eosio-cli-helper$ ./cleos.sh push action eos1okayjava hi '["eos1okayjava"]' -p eos1okayjava

executed transaction: 97dda555a72b685ba530b8341c75bb6b710700f58f99b566511fade8cba06479 104 bytes 845 us

eos1okayjava <= eos1okayjava::hi {"user":"eos1okayjava"}

warning: transaction executed locally, but may not be confirmed by the network yet ]

okayjava@EOS-VM1:~/eos/eosio-cli-helper$

이럴땐 아래와 같이 수정 한 후 nodeos 를 재실행 한다.

  1. config.ini 수정

contracts-console=1 를 추가 해주거나,

  1. nodeos 실행시

--contracts-console 붙여서 실행을 시킨다.

jungle@EOS-VM1:~/JungleTestnet-eosrocomokr1$ ps -ef | grep nodeos

jungle 4898 1 2 04:31 pts/10 00:00:12 /home/jungle/eos-source/build/programs/nodeos/nodeos --data-dir /home/jungle/JungleTestnet-eosrocomokr1 --config-dir /home/jungle/JungleTestnet-eosrocomokr1 --contracts-console

okayjava@EOS-VM1:~/eos/eosio-cli-helper$ ./cleos.sh push action eos1okayjava hi '["eos1okayjava"]' -p eos1okayjava

executed transaction: 91154a4b084792be4051eabdd06fbca6a7a57c45a1fda91e6d721f5377458120 104 bytes 523 us

eos1okayjava <= eos1okayjava::hi {"user":"eos1okayjava"}

Hello, World eos1okayjava

warning: transaction executed locally, but may not be confirmed by the network yet ]

okayjava@EOS-VM1:~/eos/eosio-cli-helper$

Sort:  

Congratulations @okayjava! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemitBoard supports the SteemFest⁴ Travel Reimbursement Fund.
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.028
BTC 59452.12
ETH 2603.11
USDT 1.00
SBD 2.39