fix(@desktop/community): Convert community token image to base64 format
Fix #9866
This commit is contained in:
parent
0bb28f564d
commit
50f64919be
|
@ -59,7 +59,7 @@ method deployCollectible*(self: Module, communityId: string, fromAddress: string
|
||||||
self.tempDeploymentParams.infiniteSupply = infiniteSupply
|
self.tempDeploymentParams.infiniteSupply = infiniteSupply
|
||||||
self.tempDeploymentParams.transferable = transferable
|
self.tempDeploymentParams.transferable = transferable
|
||||||
self.tempDeploymentParams.remoteSelfDestruct = selfDestruct
|
self.tempDeploymentParams.remoteSelfDestruct = selfDestruct
|
||||||
self.tempTokenMetadata.image = image
|
self.tempTokenMetadata.image = singletonInstance.utils.formatImagePath(image)
|
||||||
self.tempTokenMetadata.description = description
|
self.tempTokenMetadata.description = description
|
||||||
if singletonInstance.userProfile.getIsKeycardUser():
|
if singletonInstance.userProfile.getIsKeycardUser():
|
||||||
let keyUid = singletonInstance.userProfile.getKeyUid()
|
let keyUid = singletonInstance.userProfile.getKeyUid()
|
||||||
|
|
|
@ -108,7 +108,8 @@ QtObject:
|
||||||
communityToken.image = tokenMetadata.image
|
communityToken.image = tokenMetadata.image
|
||||||
|
|
||||||
# save token to db
|
# save token to db
|
||||||
discard tokens_backend.addCommunityToken(communityToken)
|
let communityTokenJson = tokens_backend.addCommunityToken(communityToken)
|
||||||
|
communityToken = communityTokenJson.result.toCommunityTokenDto()
|
||||||
let data = CommunityTokenDeployedArgs(communityToken: communityToken)
|
let data = CommunityTokenDeployedArgs(communityToken: communityToken)
|
||||||
self.events.emit(SIGNAL_COMMUNITY_TOKEN_DEPLOYED, data)
|
self.events.emit(SIGNAL_COMMUNITY_TOKEN_DEPLOYED, data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue