diff --git a/waku/waku_rln_relay/protocol_types.nim b/waku/waku_rln_relay/protocol_types.nim index 24f1d68e7..867878886 100644 --- a/waku/waku_rln_relay/protocol_types.nim +++ b/waku/waku_rln_relay/protocol_types.nim @@ -27,7 +27,7 @@ type RawRateCommitment* = seq[byte] proc toRateCommitment*(rateCommitmentUint: UInt256): RawRateCommitment = - return RawRateCommitment(@(rateCommitmentUint.toBytesBE())) + return RawRateCommitment(@(rateCommitmentUint.toBytesLE())) # Custom data types defined for waku rln relay ------------------------- type RateLimitProof* = object