import { run , ethers } from "hardhat" ; async function main ( ) { const card = await ethers . getContractAt ( "Card" , "0x6c560E869C0fE614A4bbD9D75d598E19DDB68200" ) ; const testAddress = '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ; const tokenId = 112 ; const proto = 5 ; const quality = 1 ; const mintingBlob = ethers . utils . toUtf8Bytes ( `{${ tokenId . toString ( ) }}:{${ proto . toString ( ) },${ quality . toString ( ) }}` ) ; await card . mintFor ( testAddress , '0' , mintingBlob ) ; } main ( ) . then ( ( ) => process . exit ( 0 ) ) . catch ( error => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;