Skip to content

Commit

Permalink
Merge pull request #611 from z3us-dapps/develop
Browse files Browse the repository at this point in the history
v2.0.49+ext
  • Loading branch information
heathsnee authored Oct 19, 2024
2 parents f3a8c4b + eff885e commit 4b3c78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion apps/extension/src/hooks/transaction/use-preview.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 4b3c78f

Please sign in to comment.