I am using ganache for blockchain and have deployed my smart contract on remix ide. The methods which involve accessing data that has been published using remix work fine, but the methods which involve pushing data on the blockchain dont work.
Here is my smart contract`
// SPDX-License-Identifier: GPL-3.0
I am using ganache for blockchain and have deployed my smart contract on remix ide. The methods which involve accessing data that has been published using remix work fine, but the methods which involve pushing data on the blockchain dont work.
Here is my smart contract` // SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/utils/Strings.sol"; contract primeShip{ struct Product{ address creator; string productName; string productBrand; uint256 productId; }
} ` Here is my php file
` <?php //include('../Code/vendor/web3-php/web3/src/'); require DIR.'/vendor/autoload.php'; use Web3\Web3; use Web3\Contract;
]';
`
How do I use the methods newItem and addDetails