Skip to content

Commit

Permalink
chore: seding chain id and remote (#142)
Browse files Browse the repository at this point in the history
* chore: seding chain id and remote

* chore: passing client name to gnokey
  • Loading branch information
iuricmp authored Nov 22, 2024
1 parent d1fe7c4 commit 8a5a34f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mobile/redux/features/linkingSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const initialState: State = {
export const requestLoginForGnokeyMobile = createAsyncThunk<boolean>("tx/requestLoginForGnokeyMobile", async () => {
const url = new URL('land.gno.gnokey://tosignin');
url.searchParams.append('callback', 'tech.berty.dsocial://signin-callback');
url.searchParams.append('client_name', 'dSocial');
console.log("redirecting to: ", url);
return await Linking.openURL(url.toString());
})
Expand Down Expand Up @@ -61,6 +62,8 @@ export const makeCallTx = async (props: MakeCallTxParams, gnonative: GnoNativeAp
const res = await gnonative.makeCallTx(packagePath, fnc, args, gasFee, gasWanted, address)

const url = new URL('land.gno.gnokey://tosign');
url.searchParams.append('chain_id', await gnonative.getChainID());
url.searchParams.append('remote', await gnonative.getRemote());
url.searchParams.append('tx', res.txJson);
url.searchParams.append('address', callerAddressBech32);
url.searchParams.append('client_name', 'dSocial');
Expand Down

0 comments on commit 8a5a34f

Please sign in to comment.