We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4dc88f0 + 4cb4910 commit e8085abCopy full SHA for e8085ab
1 file changed
src/main/java/io/zksync/wallet/SignedTransaction.java
@@ -36,6 +36,10 @@ public EthSignature[] getSignature() {
36
}
37
38
public static <T extends ZkSyncTransaction> SignedTransaction<T> fromPair(Pair<T, EthSignature> tx) {
39
- return new SignedTransaction<T>(tx.getLeft(), new EthSignature[] {tx.getRight()});
+ if (tx.getRight() == null) {
40
+ return new SignedTransaction<T>(tx.getLeft(), null);
41
+ } else {
42
+ return new SignedTransaction<T>(tx.getLeft(), new EthSignature[] {tx.getRight()});
43
+ }
44
45
0 commit comments