1
1
package com .algorand .algosdk .v2 .client .model ;
2
2
3
+ import java .security .NoSuchAlgorithmException ;
3
4
import java .util .Objects ;
4
5
6
+ import com .algorand .algosdk .crypto .Address ;
5
7
import com .algorand .algosdk .v2 .client .common .PathResponse ;
6
8
import com .fasterxml .jackson .annotation .JsonProperty ;
7
9
@@ -24,6 +26,24 @@ public class SimulateTransactionResult extends PathResponse {
24
26
@ JsonProperty ("exec-trace" )
25
27
public SimulationTransactionExecTrace execTrace ;
26
28
29
+ /**
30
+ * The account that needed to sign this transaction when no signature was provided
31
+ * and the provided signer was incorrect.
32
+ */
33
+ @ JsonProperty ("fixed-signer" )
34
+ public void fixedSigner (String fixedSigner ) throws NoSuchAlgorithmException {
35
+ this .fixedSigner = new Address (fixedSigner );
36
+ }
37
+ @ JsonProperty ("fixed-signer" )
38
+ public String fixedSigner () throws NoSuchAlgorithmException {
39
+ if (this .fixedSigner != null ) {
40
+ return this .fixedSigner .encodeAsString ();
41
+ } else {
42
+ return null ;
43
+ }
44
+ }
45
+ public Address fixedSigner ;
46
+
27
47
/**
28
48
* Budget used during execution of a logic sig transaction.
29
49
*/
@@ -60,6 +80,7 @@ public boolean equals(Object o) {
60
80
SimulateTransactionResult other = (SimulateTransactionResult ) o ;
61
81
if (!Objects .deepEquals (this .appBudgetConsumed , other .appBudgetConsumed )) return false ;
62
82
if (!Objects .deepEquals (this .execTrace , other .execTrace )) return false ;
83
+ if (!Objects .deepEquals (this .fixedSigner , other .fixedSigner )) return false ;
63
84
if (!Objects .deepEquals (this .logicSigBudgetConsumed , other .logicSigBudgetConsumed )) return false ;
64
85
if (!Objects .deepEquals (this .txnResult , other .txnResult )) return false ;
65
86
if (!Objects .deepEquals (this .unnamedResourcesAccessed , other .unnamedResourcesAccessed )) return false ;
0 commit comments