Skip to content

Commit

Permalink
feat: add header to onboarding overlay transaction request (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka authored Jun 29, 2022
1 parent a881274 commit b1a0179
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export async function runLauncher() {
}

async function sendTransaction(address: string) {
const response = await fetch(`https://onboarding.ethswarm.org/faucet/overlay/${address}`, { method: 'POST' })
const response = await fetch(`https://onboarding.ethswarm.org/faucet/overlay/${address}`, {
method: 'POST',
headers: { 'app-name': 'swarm-desktop' },
})
const json = await response.json()

return { transaction: json.transactionHash, blockHash: json.nextBlockHashBee }
Expand Down

0 comments on commit b1a0179

Please sign in to comment.