Skip to content

Commit 2710cf1

Browse files
fix: klayr public key typing
1 parent 4b7601b commit 2710cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/klayr/klayr-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function createTransaction(
111111
) {
112112
const unsignedTransaction = createUnsignedTransaction(
113113
address,
114-
Buffer.from(keyPair.publicKey as unknown as Uint8Array).toString('hex'),
114+
Buffer.from(keyPair.publicKey.buffer).toString('hex'),
115115
amount,
116116
fee,
117117
nonce,

0 commit comments

Comments
 (0)