Strip 0x prefix from transaction ID

This commit is contained in:
silverpill 2022-05-10 22:17:32 +00:00
parent def184af24
commit 24c4949b40

View file

@ -74,7 +74,7 @@ export async function onTokenMinted(
const url = `${BACKEND_URL}/api/v1/statuses/${postId}/token_minted` const url = `${BACKEND_URL}/api/v1/statuses/${postId}/token_minted`
const response = await http(url, { const response = await http(url, {
method: "POST", method: "POST",
json: { transaction_id: transactionId }, json: { transaction_id: transactionId.replace(/0x/, "") },
authToken, authToken,
}) })
const data = await response.json() const data = await response.json()