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 {
141
141
const transaction : Record < string , Hex | number | undefined > = {
142
142
to : tx . to ? getAddress ( tx . to ) : undefined ,
143
143
data : tx . data ,
144
- value : typeof tx . value === "bigint" ? toHex ( tx . value ) : toHex ( "0" ) ,
144
+ value : typeof tx . value === "bigint" ? toHex ( tx . value ) : undefined ,
145
145
gas :
146
146
typeof tx . gas === "bigint"
147
147
? toHex ( tx . gas + tx . gas / BigInt ( 10 ) )
@@ -162,16 +162,16 @@ export class EnclaveWallet implements IWebWallet {
162
162
chainId : toHex ( tx . chainId ) ,
163
163
} ;
164
164
165
- if ( tx . maxFeePerGas ) {
165
+ if ( typeof tx . maxFeePerGas === "bigint" ) {
166
166
transaction . maxFeePerGas = toHex ( tx . maxFeePerGas ) ;
167
167
transaction . maxPriorityFeePerGas =
168
168
typeof tx . maxPriorityFeePerGas === "bigint"
169
169
? toHex ( tx . maxPriorityFeePerGas )
170
- : toHex ( "0" ) ;
170
+ : undefined ;
171
171
transaction . type = 2 ;
172
172
} else {
173
173
transaction . gasPrice =
174
- typeof tx . gasPrice === "bigint" ? toHex ( tx . gasPrice ) : toHex ( "0" ) ;
174
+ typeof tx . gasPrice === "bigint" ? toHex ( tx . gasPrice ) : undefined ;
175
175
transaction . type = 0 ;
176
176
}
177
177
return signEnclaveTransaction ( {
You can’t perform that action at this time.
0 commit comments