Skip to content

Commit 0b5fe7b

Browse files
authored
Fireblocks - Fix - Cast Vault id to number (#231)
1 parent f26ad79 commit 0b5fe7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/fireblocks.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export class FireblocksService {
304304
messages: [
305305
{
306306
content: tx.unsigned_tx_hash,
307-
derivationPath: [44, 118, integration.vaultId, 0, 0],
307+
derivationPath: [44, 118, Number(integration.vaultId), 0, 0],
308308
preHash: {
309309
content: tx.unsigned_tx_serialized,
310310
hashAlgorithm: 'SHA256',
@@ -359,7 +359,7 @@ export class FireblocksService {
359359
messages: [
360360
{
361361
content: tx.unsigned_tx_hash,
362-
derivationPath: [44, 118, integration.vaultId, 0, 0],
362+
derivationPath: [44, 118, Number(integration.vaultId), 0, 0],
363363
preHash: {
364364
content: tx.unsigned_tx_serialized,
365365
hashAlgorithm: 'SHA256',
@@ -467,7 +467,7 @@ export class FireblocksService {
467467
messages: [
468468
{
469469
content: tx.unsigned_tx_hash,
470-
derivationPath: [44, 459, integration.vaultId, 0, 0],
470+
derivationPath: [44, 459, Number(integration.vaultId), 0, 0],
471471
preHash: {
472472
content: tx.unsigned_tx_serialized,
473473
hashAlgorithm: 'SHA256',
@@ -522,7 +522,7 @@ export class FireblocksService {
522522
messages: [
523523
{
524524
content: tx.unsigned_tx_hash,
525-
derivationPath: [44, 394, integration.vaultId, 0, 0],
525+
derivationPath: [44, 394, Number(integration.vaultId), 0, 0],
526526
preHash: {
527527
content: tx.unsigned_tx_serialized,
528528
hashAlgorithm: 'SHA256',
@@ -577,7 +577,7 @@ export class FireblocksService {
577577
messages: [
578578
{
579579
content: tx.unsigned_tx_hash,
580-
derivationPath: [44, 118, integration.vaultId, 0, 0],
580+
derivationPath: [44, 118, Number(integration.vaultId), 0, 0],
581581
preHash: {
582582
content: tx.unsigned_tx_serialized,
583583
hashAlgorithm: 'SHA256',
@@ -738,7 +738,7 @@ export class FireblocksService {
738738
messages: [
739739
{
740740
content: tx.unsigned_tx_hash,
741-
derivationPath: [44, 118, integration.vaultId, 0, 0],
741+
derivationPath: [44, 118, Number(integration.vaultId), 0, 0],
742742
preHash: {
743743
content: tx.unsigned_tx_serialized,
744744
hashAlgorithm: 'SHA256',

0 commit comments

Comments
 (0)