1 개의 답변
아니요. 선언만 한다고 값이 출력되지는 않고요.
[실행]을 누르면 계약을 블록체인에 올려서 호출하는 코드가 뒷단에 있습니다.
예시로 하나 보여드리자면 이런 느낌입니다.
it("should print string", function() {
return Variables.deployed().then(function(instance) {
return instance.name();
}).then(function(data) {
console.log("name의 값 : " + data);
});
});