mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
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.transferable = transferable
|
||||
self.tempDeploymentParams.remoteSelfDestruct = selfDestruct
|
||||
self.tempTokenMetadata.image = image
|
||||
self.tempTokenMetadata.image = singletonInstance.utils.formatImagePath(image)
|
||||
self.tempTokenMetadata.description = description
|
||||
if singletonInstance.userProfile.getIsKeycardUser():
|
||||
let keyUid = singletonInstance.userProfile.getKeyUid()
|
||||
|
@ -108,7 +108,8 @@ QtObject:
|
||||
communityToken.image = tokenMetadata.image
|
||||
|
||||
# save token to db
|
||||
discard tokens_backend.addCommunityToken(communityToken)
|
||||
let communityTokenJson = tokens_backend.addCommunityToken(communityToken)
|
||||
communityToken = communityTokenJson.result.toCommunityTokenDto()
|
||||
let data = CommunityTokenDeployedArgs(communityToken: communityToken)
|
||||
self.events.emit(SIGNAL_COMMUNITY_TOKEN_DEPLOYED, data)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user