Skip to content

Commit

Permalink
Remove direct refernce to EthSafeTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayindirli committed Apr 29, 2024
1 parent da9151c commit 6c3d62a
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import SafeApiKit from '@safe-global/api-kit';
import Safe, { EthSafeSignature } from '@safe-global/protocol-kit';
import EthSafeTransaction from '@safe-global/protocol-kit/dist/src/utils/transactions/SafeTransaction.js';
import assert from 'assert';
import { Logger } from 'pino';

Expand Down Expand Up @@ -83,11 +82,10 @@ export class GnosisSafeTxSubmitter
return { to, data, value: value?.toString() ?? '0' };
},
);
const safeTransaction: EthSafeTransaction.default =
await safe.createTransaction({
safeTransactionData: safeTransactionBatch,
options: { nonce: nextNonce },
});
const safeTransaction = await safe.createTransaction({
safeTransactionData: safeTransactionBatch,
options: { nonce: nextNonce },
});
const safeTransactionData: SafeTransactionData = safeTransaction.data;
const safeTxHash: string = await safe.getTransactionHash(safeTransaction);
let senderAddress: Address | undefined = this.props.signerAddress;
Expand Down

0 comments on commit 6c3d62a

Please sign in to comment.