在復仇智能合同IBM Example,有這樣下面的代碼:是{來自:thesponsor,值:10000000,gas:3000000}一個msg對象在堅實?
personal.unlockAccount(thesponsor,"password");
ss.pledge("Good luck with the run!", {from: thesponsor, value: 10000000, gas: 3000000});
然而,承諾的功能是不是應付改性劑和只接受一個參數作爲參數:
function pledge(bytes32 _message) {
if (msg.value == 0 || complete || refunded) throw;
pledges[numPledges] = Pledge(msg.value, msg.sender, _message);
numPledges++;
}
那麼,堅定性會自動將{from:thesponsor,value:10000000,gas:3000000}視爲一個msg對象,從我的賬戶轉移ethers?
我剛剛發現這個功能有點兒werid。如果我寫了一個恰好包含關鍵字「from」和「value」的json對象,我會不小心轉移任何資金嗎?