Skip to content

Commit

Permalink
fix chainId undefined for refunds
Browse files Browse the repository at this point in the history
  • Loading branch information
calebtuttle committed Dec 18, 2024
1 parent 97a1ec7 commit 60abfb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/admin/refund-failed-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function refundFailedSession(req, res) {
provider = optimismProvider;
} else if (session.chainId === 250) {
provider = fantomProvider;
} else if (chainId === 8453) {
} else if (session.chainId === 8453) {
provider = baseProvider;
} else if (session.chainId === 43114) {
provider = avalancheProvider;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function refundMintFeeOnChain(session, to) {
provider = optimismProvider;
} else if (session.chainId === 250) {
provider = fantomProvider;
} else if (chainId === 8453) {
} else if (session.chainId === 8453) {
provider = baseProvider;
} else if (session.chainId === 43114) {
provider = avalancheProvider;
Expand Down

0 comments on commit 60abfb4

Please sign in to comment.