I am getting this error when i trying to use metamask on my gancache local for a simple transaction Metamask is connected to my ganache this is the erreur
and this is how i called my methode
packItem: function (event) {
event.preventDefault();
var processId = parseInt($(event.target).data('id'));
App.contracts.SupplyChain.deployed().then(function (instance) {
return instance.packItem(App.upc, { from: App.metamaskAccountID });
}).then(function (result) {
$("#ftc-item").text(result);
console.log('packItem', result);
}).catch(function (err) {
console.log(err.message);
});
},