mirror of
https://github.com/vacp2p/status-linea-besu.git
synced 2026-01-08 21:38:15 -05:00
Fix AT failure because of additional field sent by Orion (#299)
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
This commit is contained in:
@@ -18,18 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
@JsonPropertyOrder({"payload", "privacyGroupId"})
|
||||
@JsonPropertyOrder({"payload", "privacyGroupId", "senderKey"})
|
||||
public class ReceiveResponse {
|
||||
|
||||
private final byte[] payload;
|
||||
private final String privacyGroupId;
|
||||
private final String senderKey;
|
||||
|
||||
@JsonCreator
|
||||
public ReceiveResponse(
|
||||
@JsonProperty(value = "payload") final byte[] payload,
|
||||
@JsonProperty(value = "privacyGroupId") final String privacyGroupId) {
|
||||
@JsonProperty(value = "privacyGroupId") final String privacyGroupId,
|
||||
@JsonProperty(value = "senderKey") final String senderKey) {
|
||||
this.payload = payload;
|
||||
this.privacyGroupId = privacyGroupId;
|
||||
this.senderKey = senderKey;
|
||||
}
|
||||
|
||||
public byte[] getPayload() {
|
||||
@@ -39,4 +42,8 @@ public class ReceiveResponse {
|
||||
public String getPrivacyGroupId() {
|
||||
return privacyGroupId;
|
||||
}
|
||||
|
||||
public String getSenderKey() {
|
||||
return senderKey;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user