0x prefixed and padded return values
This commit is contained in:
parent
3edac0ecc9
commit
65db1edc06
7
bbpay.py
7
bbpay.py
@ -119,7 +119,7 @@ class Release(BBPay):
|
||||
return 'Upstream error', response.status_code
|
||||
data = response.json()
|
||||
numeroParticipante = data['repasse']['recebedores'][0]['identificadorRecebedor']
|
||||
pixTimestamp = b85decode(data['informacoesPix']['txId'])
|
||||
pixTimestamp = encode_packed(['bytes32'],[b85decode(data['informacoesPix']['txId'])])
|
||||
valorSolicitacao = to_wei(data['valorSolicitacao'], 'ether')
|
||||
codigoEstadoSolicitacao = data['codigoEstadoSolicitacao']
|
||||
if codigoEstadoSolicitacao != 1:
|
||||
@ -139,8 +139,9 @@ class Release(BBPay):
|
||||
return {
|
||||
'pixTarget': f"{chainID}-{numeroParticipante}",
|
||||
'amount': str(valorSolicitacao),
|
||||
'pixTimestamp': pixTimestamp.hex(),
|
||||
'signature': signature }
|
||||
'pixTimestamp': f"0x{pixTimestamp.hex()}",
|
||||
'signature': f"0x{signature}"
|
||||
}
|
||||
|
||||
|
||||
# (CPF, nome, conta) -> participantID
|
||||
|
Loading…
x
Reference in New Issue
Block a user