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 response = await http(url, {
method: "POST",
json: { transaction_id: transactionId },
json: { transaction_id: transactionId.replace(/0x/, "") },
authToken,
})
const data = await response.json()