Skip to content

Commit c143387

Browse files
committed
Add keyId and keyAuthorization fields for gas estimation with access keys
1 parent 7797197 commit c143387

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/tempo/Formatters.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,19 @@ export function formatTransactionRequest(
121121
return [undefined, undefined]
122122
})()
123123

124+
const keyId =
125+
account && 'accessKeyAddress' in account
126+
? account.accessKeyAddress
127+
: undefined
128+
124129
return {
125130
...rpc,
126131
...(keyType ? { keyType } : {}),
127132
...(keyData ? { keyData } : {}),
133+
...(keyId ? { keyId } : {}),
134+
...(request.keyAuthorization
135+
? { keyAuthorization: request.keyAuthorization }
136+
: {}),
128137
...(request.feePayer
129138
? {
130139
feePayer:

0 commit comments

Comments
 (0)