Skip to content

Commit a24f08a

Browse files
committed
feat: up TransactionRequest.toRpc for Tempo
1 parent 643ce46 commit a24f08a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/sour-eels-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ox": patch
3+
---
4+
5+
Updated `TransactionRequest.toRpc` for Tempo.

src/tempo/TransactionRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ export function toRpc(request: TransactionRequest): Rpc {
136136
if (nonceKey) request_rpc.nonceKey = nonceKey
137137

138138
if (
139-
request.calls ||
139+
typeof request.calls !== 'undefined' ||
140140
typeof request.feeToken !== 'undefined' ||
141+
typeof request.keyAuthorization !== 'undefined' ||
142+
typeof request.nonceKey !== 'undefined' ||
141143
typeof request.validBefore !== 'undefined' ||
142144
typeof request.validAfter !== 'undefined' ||
143145
request.type === 'tempo'

0 commit comments

Comments
 (0)