When I create a transaction like below
App.contracts.Soccer.deployed().then(function(instance) {
return instance.purchaseShoes(name, age, { from: accounts[0], value: value});
}).then(function() {
...
it creates an input data in transaction details from etherscan.
Isn't input data only created when I passed it as a data parameter? (ex: { from: accounts[0], value: value, data: 'test data' }
When I decoded the input data by converting it to utf-8 from etherscan, although it was not totally readable, I saw one of the values were the data I passed it to purchseShoes function.
So my question is, why is it creating an input data when I didn't pass it as a data param? how can I prevent it from creating it?
dataobject in the last parameter? I wonder if it can change the data I passed asnameandage. – bbusdriver Apr 16 '19 at 18:56web3 packs... in the data field of transaction. Does that mean it is creatingdataobject in the last parameter behind the scene although I did not explicitly added? – bbusdriver Apr 16 '19 at 19:11