Skip to content

Commit

Permalink
chore: update WC qml tests with the new DAppsWorkflow API
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjba committed Oct 3, 2024
1 parent 7c9ed97 commit 05ec6a4
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 123 deletions.
5 changes: 3 additions & 2 deletions storybook/qmlTests/tests/helpers/wallet_connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ function formatApproveSessionResponse(networksArray, accountsArray, custom) {
}`
}

function formatSessionRequest(chainId, method, params, topic) {
function formatSessionRequest(chainId, method, params, topic, requestId) {
const reqId = requestId || 1717149885151715
let paramsStr = params.map(param => `${param}`).join(',')
return `{
"id": 1717149885151715,
"id": ${reqId},
"params": {
"chainId": "eip155:${chainId}",
"request": {
Expand Down
Loading

0 comments on commit 05ec6a4

Please sign in to comment.