Skip to content

Commit 3b9c5cc

Browse files
committed
fix: add '0x' to the signature if not here (error happenings only on unit test)
1 parent 768dc35 commit 3b9c5cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aleph/sdk/chains/common.py

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ async def sign_message(self, message: Dict) -> Dict:
7373
message = self._setup_sender(message)
7474
signature = await self.sign_raw(get_verification_buffer(message))
7575
message["signature"] = signature.hex()
76+
77+
if not str(message['signature']).startswith('0x'):
78+
message['signature'] = "0x" + message['signature']
79+
7680
return message
7781

7882
@abstractmethod

0 commit comments

Comments
 (0)