I was going through the IDM Example for Ethereum smart contract and i came across the following code:
personal.unlockAccount(thesponsor,"password");
ss.pledge("Good luck with the run!", {from: thesponsor, value: 10000000, gas: 3000000});
and the pledge function is as follows:
function pledge(bytes32 _message) {
if (msg.value == 0 || complete || refunded) throw;
pledges[numPledges] = Pledge(msg.value, msg.sender, _message);
numPledges++;
}
I am getting a little confused here. Is the solidity seeing {from: thesponsor, value: 10000000, gas: 3000000} as a
msg object that is used to transfer ethers? If yes, then if i write a json object with the keywords "from"and "value",
would it make a fund transaction accidentally?