File tree Expand file tree Collapse file tree
front-end/src/renderer/pages/Transactions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ async function handleTransactionFileAction(action: string) {
216216/* Functions */
217217async function importSignaturesFromV2File(filePath : string ) {
218218 assertIsLoggedInOrganization (user .selectedOrganization );
219+ const serverUrl = user .selectedOrganization .serverUrl ;
219220
220221 const transactionFile = await readTransactionFile (filePath );
221222 const importInputs: ISignatureImport [] = [];
@@ -229,10 +230,7 @@ async function importSignaturesFromV2File(filePath: string) {
229230
230231 const transactionId = sdkTransaction .transactionId ;
231232 try {
232- const transaction = await transactionCache .lookup (
233- transactionId ! .toString (),
234- user .selectedOrganization .serverUrl ,
235- );
233+ const transaction = await transactionCache .lookup (transactionId ! .toString (), serverUrl );
236234 importInputs .push ({
237235 id: transaction .id ,
238236 signatureMap: map ,
@@ -269,6 +267,11 @@ async function importSignaturesFromV2File(filePath: string) {
269267 );
270268 }
271269 }
270+
271+ for (const i of importInputs ) {
272+ // We forget cached data for transaction i.id
273+ transactionCache .forget (i .id , serverUrl );
274+ }
272275}
273276
274277async function selectTransactionFile(onlyV2 = false ): Promise <string | null > {
You can’t perform that action at this time.
0 commit comments