Skip to content

Commit 68763ae

Browse files
authored
fix: require retry from same from wallet (#462)
1 parent 3585e40 commit 68763ae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/server/routes/transaction/syncRetry.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ export async function syncRetryTransaction(fastify: FastifyInstance) {
5757
},
5858
handler: async (request, reply) => {
5959
const { queueId, maxFeePerGas, maxPriorityFeePerGas } = request.body;
60-
const walletAddress = request.headers[
61-
"x-backend-wallet-address"
62-
] as string;
6360

6461
const tx = await prisma.transactions.findUnique({
6562
where: {
@@ -100,7 +97,7 @@ export async function syncRetryTransaction(fastify: FastifyInstance) {
10097
// Get signer.
10198
const sdk = await getSdk({
10299
chainId: Number(tx.chainId),
103-
walletAddress,
100+
walletAddress: tx.fromAddress,
104101
});
105102
const signer = sdk.getSigner();
106103
if (!signer) {

0 commit comments

Comments
 (0)