Skip to content

Commit

Permalink
fix: include Content-Type in Sidecar request (#2)
Browse files Browse the repository at this point in the history
* fixing bug

* chore: prepare for release

Co-authored-by: Yusuf Praditya <47532266+yusufpraditya@users.noreply.github.com>
  • Loading branch information
johnletey and cvpfus authored Jun 22, 2022
1 parent c9dd9de commit 8c6423a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2,690 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Install yarn.
run: npm install -g yarn
- name: Install dependencies.
run: yarn install
run: yarn add webhook-discord

- name: Run script.
run: DISCORD=${{ secrets.DISCORD }} VERSION=${GITHUB_REF#refs/tags/} node .github/webhook.js
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyve/substrate",
"version": "0.0.2",
"version": "0.0.3",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand Down Expand Up @@ -29,7 +29,6 @@
"pkg": "^5.7.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"typescript": "^4.7.3",
"webhook-discord": "^3.7.8"
"typescript": "^4.7.4"
}
}
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function isHeightOutOfRange(err: any): boolean {
async function requestSidecarAPI(endpoint: string, signature: Signature) {
const { data } = await axios.get(endpoint, {
headers: {
'Content-Type': 'application/json',
Signature: signature.signature,
'Public-Key': signature.pubKey,
'Pool-ID': signature.poolId,
Expand Down
Loading

0 comments on commit 8c6423a

Please sign in to comment.