Skip to content

Commit

Permalink
fix: use compatible axios
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Oct 19, 2023
1 parent 1fc78eb commit 9970881
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
18 changes: 6 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"dependencies": {
"@ethersphere/swarm-cid": "^0.1.0",
"@types/readable-stream": "^2.3.13",
"axios": "^1.3.4",
"axios": "^0.27.2",
"cafe-utility": "^10.8.1",
"elliptic": "^6.5.4",
"fetch-blob": "2.1.2",
Expand Down
6 changes: 5 additions & 1 deletion src/modules/debug/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ export async function cancelTransaction(
transactionHash: TransactionHash,
gasPrice?: NumberString,
): Promise<TransactionHash> {
const headers: Record<string, string | number> = {}
if (gasPrice) {

Check failure on line 78 in src/modules/debug/transactions.ts

View workflow job for this annotation

GitHub Actions / check (16.x)

Expected blank line before this statement
headers['gas-price'] = gasPrice
}
const response = await http<TransactionResponse>(requestOptions, {
method: 'delete',
headers: { 'gas-price': gasPrice },
headers,
url: `${transactionsEndpoint}/${transactionHash}`,
responseType: 'json',
})
Expand Down

0 comments on commit 9970881

Please sign in to comment.