File tree 3 files changed +8
-2
lines changed
react/web/ui/prebuilt/NFT
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Handle hex value format for smart wallet execution
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export async function getNFTInfo(options: NFTProviderProps): Promise<NFT> {
17
17
} ) ,
18
18
getNFT1155 ( {
19
19
...options ,
20
+ useIndexer : false , // TODO (insight): switch this call to only call insight once
20
21
} ) ,
21
22
] ) . then ( ( [ possibleNFT721 , possibleNFT1155 ] ) => {
22
23
// getNFT extension always return an NFT object
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ export function prepareExecute(args: {
184
184
let value = transaction . value || 0n ;
185
185
// special handling of hedera chains, decimals for native value is 8 instead of 18 when passed as contract params
186
186
if ( transaction . chainId === 295 || transaction . chainId === 296 ) {
187
- value = value / BigInt ( 10 ** 10 ) ;
187
+ value = BigInt ( value ) / BigInt ( 10 ** 10 ) ;
188
188
}
189
189
return prepareContractCall ( {
190
190
contract : accountContract ,
@@ -220,7 +220,7 @@ export function prepareBatchExecute(args: {
220
220
const chainId = transactions [ 0 ] ?. chainId ;
221
221
// special handling of hedera chains, decimals for native value is 8 instead of 18 when passed as contract params
222
222
if ( chainId === 295 || chainId === 296 ) {
223
- values = values . map ( ( value ) => value / BigInt ( 10 ** 10 ) ) ;
223
+ values = values . map ( ( value ) => BigInt ( value ) / BigInt ( 10 ** 10 ) ) ;
224
224
}
225
225
return prepareContractCall ( {
226
226
contract : accountContract ,
You can’t perform that action at this time.
0 commit comments