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?