Skip to content

Commit c6fbd60

Browse files
committed
[SDK] Fix: pass gasPrice to injected provider (#4935)
<!-- start pr-codex --> ## PR-Codex overview This PR introduces the handling of `gasPrice` in the transaction object within the `injected` wallet module. ### Detailed summary - Added a new line to handle `gasPrice` in the transaction object. - The `gasPrice` is conditionally converted to hexadecimal format using `numberToHex` if it exists. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 8e80113 commit c6fbd60

File tree

1 file changed

+1
-0
lines changed
  • packages/thirdweb/src/wallets/injected

1 file changed

+1
-0
lines changed

packages/thirdweb/src/wallets/injected/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function createAccount(provider: Ethereum, _address: string) {
120120
accessList: tx.accessList,
121121
value: tx.value ? numberToHex(tx.value) : undefined,
122122
gas: tx.gas ? numberToHex(tx.gas) : undefined,
123+
gasPrice: tx.gasPrice ? numberToHex(tx.gasPrice) : undefined,
123124
from: this.address,
124125
to: tx.to as Address,
125126
data: tx.data,

0 commit comments

Comments
 (0)