Skip to content

Commit

Permalink
api: add support for multiple version of terms and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Jul 4, 2023
1 parent 71639c7 commit d6e4c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/hooks/use-sign-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const postSignature = async (account: KeyringPair) => {
throw new Error('Failed to sign message');
}

return fetch(`${SIGNER_API_URL}/${account.address}`, {
return fetch(`${SIGNER_API_URL}/${account.address}?${new URLSearchParams({version: TC_VERSION})}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down Expand Up @@ -76,7 +76,7 @@ const useSignMessage = (): UseSignMessageResult => {
return storedSignature;
}

const res = await fetch(`${SIGNER_API_URL}/${account.address}`, {
const res = await fetch(`${SIGNER_API_URL}/${account.address}?${new URLSearchParams({version: TC_VERSION})}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
Expand Down

0 comments on commit d6e4c05

Please sign in to comment.