[EOS]smart contract 작성시 print가 찍히지 않을 경우
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 를 재실행 한다.
- config.ini 수정
contracts-console=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$
Congratulations @okayjava! You received a personal award!
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:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!