Skip to content

Commit

Permalink
Merge pull request #270 from radixdlt/subintents-update
Browse files Browse the repository at this point in the history
Subintents update
  • Loading branch information
xstelea authored Nov 7, 2024
2 parents 49c0bfe + a971f48 commit 54e3292
Show file tree
Hide file tree
Showing 17 changed files with 597 additions and 1,583 deletions.
1 change: 1 addition & 0 deletions examples/simple-dapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<title>Simple dApp</title>
</head>
<body>
Expand Down
7 changes: 2 additions & 5 deletions examples/simple-dapp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ const proofOfOwnershipRequest = document.getElementById(
'proof-of-ownership-request',
)!

let subintentExpiration: 'secondsAfterSignature' | 'atTime' =
'secondsAfterSignature'
let subintentExpiration: 'afterDelay' | 'atTime' = 'afterDelay'

document.querySelectorAll('input[name="option"]').forEach((radio) => {
radio.addEventListener('change', () => {
Expand All @@ -92,9 +91,7 @@ document.querySelectorAll('input[name="option"]').forEach((radio) => {
) as HTMLInputElement
if (selectedOption) {
console.log(`Selected value: ${selectedOption.value}`)
subintentExpiration = selectedOption.value as
| 'secondsAfterSignature'
| 'atTime'
subintentExpiration = selectedOption.value as 'afterDelay' | 'atTime'
}
})
})
Expand Down
Loading

0 comments on commit 54e3292

Please sign in to comment.