File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/thirdweb/src/wallets/in-app/core/wallet Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export class EnclaveWallet implements IWebWallet {
141141 const transaction : Record < string , Hex | number | undefined > = {
142142 to : tx . to ? getAddress ( tx . to ) : undefined ,
143143 data : tx . data ,
144- value : typeof tx . value === "bigint" ? toHex ( tx . value ) : toHex ( "0" ) ,
144+ value : typeof tx . value === "bigint" ? toHex ( tx . value ) : undefined ,
145145 gas :
146146 typeof tx . gas === "bigint"
147147 ? toHex ( tx . gas + tx . gas / BigInt ( 10 ) )
@@ -162,16 +162,16 @@ export class EnclaveWallet implements IWebWallet {
162162 chainId : toHex ( tx . chainId ) ,
163163 } ;
164164
165- if ( tx . maxFeePerGas ) {
165+ if ( typeof tx . maxFeePerGas === "bigint" ) {
166166 transaction . maxFeePerGas = toHex ( tx . maxFeePerGas ) ;
167167 transaction . maxPriorityFeePerGas =
168168 typeof tx . maxPriorityFeePerGas === "bigint"
169169 ? toHex ( tx . maxPriorityFeePerGas )
170- : toHex ( "0" ) ;
170+ : undefined ;
171171 transaction . type = 2 ;
172172 } else {
173173 transaction . gasPrice =
174- typeof tx . gasPrice === "bigint" ? toHex ( tx . gasPrice ) : toHex ( "0" ) ;
174+ typeof tx . gasPrice === "bigint" ? toHex ( tx . gasPrice ) : undefined ;
175175 transaction . type = 0 ;
176176 }
177177 return signEnclaveTransaction ( {
You can’t perform that action at this time.
0 commit comments