fix(minting): fix minting tokens on Windows (#16422)

Fixes #16326

Passes the image through the image formatting function before sending
This commit is contained in:
Jonathan Rainville 2024-09-30 11:14:41 -04:00 committed by GitHub
parent 87e91de90c
commit 0a8f8d7026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 2 deletions

View File

@ -184,7 +184,11 @@ method deployCollectibles*(self: Module, communityId: string, fromAddress: strin
self.tempDeploymentParams.masterTokenAddress = masterTokenAddress
self.tempDeploymentParams.tokenType = TokenType.ERC721
self.tempDeploymentParams.description = description
self.tempDeploymentParams.croppedImageJson = imageCropInfoJson
let croppedImage = imageCropInfoJson.parseJson
let base65Image = singletonInstance.utils.formatImagePath(croppedImage["imagePath"].getStr)
self.tempDeploymentParams.base64image = base65Image
self.tempDeploymentParams.communityId = communityId
self.tempContractAction = ContractAction.Deploy
self.authenticate()
@ -241,7 +245,11 @@ method deployAssets*(self: Module, communityId: string, fromAddress: string, nam
self.tempDeploymentParams.masterTokenAddress = masterTokenAddress
self.tempDeploymentParams.tokenType = TokenType.ERC20
self.tempDeploymentParams.description = description
self.tempDeploymentParams.croppedImageJson = imageCropInfoJson
let croppedImage = imageCropInfoJson.parseJson
let base65Image = singletonInstance.utils.formatImagePath(croppedImage["imagePath"].getStr)
self.tempDeploymentParams.base64image = base65Image
self.tempDeploymentParams.communityId = communityId
self.tempContractAction = ContractAction.Deploy
self.authenticate()