diff --git a/src/app/modules/main/communities/module.nim b/src/app/modules/main/communities/module.nim index 49cca166cf..08779f49cc 100644 --- a/src/app/modules/main/communities/module.nim +++ b/src/app/modules/main/communities/module.nim @@ -736,10 +736,12 @@ method onDataSigned*(self: Module, keyUid: string, path: string, r: string, s: s # being here is not an error return + let vFixed = toLower(uint8(parseUint(v) + 27).toHex()) + for address, details in self.joiningCommunityDetails.addressesToShare.pairs: if details.keyUid != keyUid or details.path != path: continue - self.joiningCommunityDetails.addressesToShare[address].signature = "0x" & r & s & v + self.joiningCommunityDetails.addressesToShare[address].signature = "0x" & r & s & vFixed break self.signSharedAddressesForKeypair(keyUid, pin) diff --git a/src/app/modules/main/wallet_section/poc_wallet_connect/controller.nim b/src/app/modules/main/wallet_section/poc_wallet_connect/controller.nim index 8c3abf5cbb..247f65ff7c 100644 --- a/src/app/modules/main/wallet_section/poc_wallet_connect/controller.nim +++ b/src/app/modules/main/wallet_section/poc_wallet_connect/controller.nim @@ -96,7 +96,7 @@ QtObject: if keyUid.len == 0 or path.len == 0 or r.len == 0 or s.len == 0 or v.len == 0 or pin.len == 0: error "invalid data signed" return - let signature = "0x" & r & s & v + let signature = "0x" & r & s & v // FIXME if identifier == UNIQUE_WC_SESSION_REQUEST_SIGNING_IDENTIFIER: self.finishSessionRequest(signature) elif identifier == UNIQUE_WC_AUTH_REQUEST_SIGNING_IDENTIFIER: