@@ -50,14 +50,12 @@ export abstract class GnosisApiStrategy extends GnosisSigningStrategy {
50
50
] ,
51
51
} )
52
52
53
- const prompt = ora ( `Forming transaction...` ) ;
54
- const spinner = prompt . start ( ) ;
53
+ console . log ( `Forming transaction...` ) ;
55
54
const hash = await protocolKitOwner1 . getTransactionHash ( txn )
56
- spinner . stop ( ) ;
57
55
58
56
return {
59
57
output,
60
- safeAddress : safeContext . addr ,
58
+ safeAddress : getAddress ( safeContext . addr ) ,
61
59
safeTxHash : hash as `0x${string } `,
62
60
senderAddress : signer as `0x${string } `,
63
61
stateUpdates
@@ -101,11 +99,9 @@ export abstract class GnosisApiStrategy extends GnosisSigningStrategy {
101
99
} ]
102
100
} )
103
101
104
- let prompt = ora ( `Creating transaction...` ) ;
105
- let spinner = prompt . start ( ) ;
102
+ console . log ( `Creating transaction...` ) ;
106
103
const hash = await protocolKitOwner1 . getTransactionHash ( txn )
107
104
const version = await protocolKitOwner1 . getContractVersion ( ) ;
108
- spinner . stop ( ) ;
109
105
110
106
if ( stateUpdates ) {
111
107
console . log ( chalk . bold . underline ( `Updated Environment: ` ) ) ;
@@ -114,25 +110,19 @@ export abstract class GnosisApiStrategy extends GnosisSigningStrategy {
114
110
115
111
const senderSignature = await this . getSignature ( version , txn , safeContext . addr )
116
112
117
- prompt = ora ( `Sending transction to Gnosis SAFE UI... (safe=${ getAddress ( safeContext . addr ) } )` ) ;
118
- spinner = prompt . start ( ) ;
119
- try {
120
- await apiKit . proposeTransaction ( {
121
- safeAddress : getAddress ( safeContext . addr ) ,
122
- safeTransactionData : txn . data ,
123
- safeTxHash : hash ,
124
- senderAddress : getAddress ( signer ) ,
125
- senderSignature,
126
- } )
127
- } finally {
128
- spinner . stop ( ) ;
129
- }
113
+ await apiKit . proposeTransaction ( {
114
+ safeAddress : getAddress ( safeContext . addr ) ,
115
+ safeTransactionData : txn . data ,
116
+ safeTxHash : hash ,
117
+ senderAddress : getAddress ( signer ) ,
118
+ senderSignature,
119
+ } )
130
120
131
121
return {
132
122
output,
133
123
safeAddress : safeContext . addr ,
134
124
safeTxHash : hash as `0x${string } `,
135
- senderAddress : signer ,
125
+ senderAddress : getAddress ( signer ) ,
136
126
signature : senderSignature ,
137
127
stateUpdates
138
128
}
0 commit comments