Skip to content

Commit

Permalink
Change setting request expiry on dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid committed Jan 19, 2024
1 parent b07b817 commit 196661c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import java.util.concurrent.TimeUnit

class AccountViewModel(
savedStateHandle: SavedStateHandle
Expand Down Expand Up @@ -98,8 +97,7 @@ class AccountViewModel(
sessionTopic = requireNotNull(DappDelegate.selectedSessionTopic),
method = method,
params = params, // stringified JSON
chainId = "$parentChain:$chainId",
expiry = (System.currentTimeMillis() / 1000) + TimeUnit.SECONDS.convert(10, TimeUnit.MINUTES)
chainId = "$parentChain:$chainId"
)

WalletConnectModal.request(requestParams,
Expand Down

0 comments on commit 196661c

Please sign in to comment.