contracts
directory. In the directory, create your ERC-721 contract Fantom721Collection.sol
.
createCollectible
.2_deploy_contracts.js
in the migrations
directory.
HDWalletProvider
.
HDWalletProvider is Truffle’s separate npm package used to sign transactions.
Run:
truffle-config.js
to add:
HDWalletProvider
testnet
— any network name that you will pass to the truffle migrate --network
command.HDWalletProvider
— Truffle’s custom provider to sign transactions.network_id
— the network ID of the Fantom network: mainnet is 250
, testnet is 4002
.solc
— the Solidity compiler version that Truffle must use.2_deploy_contracts.js
and deploy the contract to the Fantom testnet as specified in truffle-config.js
.
.sol
file to make FTMScan be able to verify it.
contracts
directory, run:
SPDX
mentions in the file and remove all of them except for the very first one.
contract address
field..sol
contract in the Enter the Solidity Contract Code below field.createCollectible
function.
Make sure you have:
createCollectible
.