Skip to content

Commit 5cbbaea

Browse files
committed
remove assetId param from signAtomTx (#180)
* remove assetId param from signAtomTx * bump package.json
1 parent b8cbddf commit 5cbbaea

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilnfi/sdk",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/fireblocks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ export class FireblocksService {
189189
async signAtomTx(
190190
integration: FireblocksIntegration,
191191
tx: components['schemas']['ATOMUnsignedTx'] | components['schemas']['ATOMStakeUnsignedTx'],
192-
assetId: 'ATOM_COS' | 'ATOM_COS_TEST',
193192
note?: string,
194193
): Promise<{
195194
signed_tx: { data: components['schemas']['ATOMSignedTx'] };
@@ -211,7 +210,7 @@ export class FireblocksService {
211210

212211
const fbSigner = this.getSigner(integration);
213212
const fbNote = note ? note : 'ATOM tx from @kilnfi/sdk';
214-
const fbTx = await fbSigner.sign(payload, assetId, fbNote);
213+
const fbTx = await fbSigner.sign(payload, 'ATOM_COS', fbNote);
215214
const signature = fbTx.signedMessages?.[0]?.signature.fullSig;
216215

217216
if (!signature) {

src/fireblocks_signer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export type FireblocksAssetId =
2121
| 'ETH_TEST5'
2222
| 'ETH_TEST6'
2323
| 'ETH'
24-
| 'ATOM_COS_TEST'
2524
| 'ATOM_COS'
2625
| 'OSMO_TEST'
2726
| 'OSMO'

0 commit comments

Comments
 (0)