diff --git a/apps/extension/package.json b/apps/extension/package.json index dbbb9d79e..1d259a058 100644 --- a/apps/extension/package.json +++ b/apps/extension/package.json @@ -1,6 +1,6 @@ { "name": "z3us-extension", - "version": "2.0.48", + "version": "2.0.49", "type": "module", "scripts": { "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", diff --git a/apps/extension/src/hooks/transaction/use-preview.tsx b/apps/extension/src/hooks/transaction/use-preview.tsx index c2b248b90..9b15991e8 100644 --- a/apps/extension/src/hooks/transaction/use-preview.tsx +++ b/apps/extension/src/hooks/transaction/use-preview.tsx @@ -1,5 +1,5 @@ import type { Intent } from '@radixdlt/radix-engine-toolkit' -import { RadixEngineToolkit, generateRandomNonce } from '@radixdlt/radix-engine-toolkit' +import { Convert, RadixEngineToolkit, generateRandomNonce } from '@radixdlt/radix-engine-toolkit' import { useCallback } from 'react' import { useGatewayClient } from 'ui/src/hooks/dapp/use-gateway-client' @@ -39,9 +39,12 @@ export const usePreview = () => { 'String', ) + const blobs = intent.manifest.blobs?.map(blob => Convert.Uint8Array.toHexString(blob)) || [] + return transaction.innerClient.transactionPreview({ transactionPreviewRequest: { manifest: manifest.value as string, + blobs_hex: blobs, start_epoch_inclusive: validFromEpoch, end_epoch_exclusive: validFromEpoch + 10, nonce: generateRandomNonce(),