You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@workwithamit add a function in the contract called transferToken. This function takes an address and tokenId as input and appends that address to the ownershipHistory array of the struct object having that tokenId
The text was updated successfully, but these errors were encountered:
function transferToken(uint256_tokenId, address_newOwner) public {
The way I have added the new owner to the array is more gas efficient. Now, you need to similarly update the timestamp as well in the same function, in the similar way
@workwithamit add a function in the contract called
transferToken
. This function takes an address and tokenId as input and appends that address to theownershipHistory
array of the struct object having that tokenIdThe text was updated successfully, but these errors were encountered: