crosslightning-solana
Advanced tools
Comparing version 3.6.0 to 3.6.1
{ | ||
"name": "crosslightning-solana", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Solana specific base implementation", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -120,3 +120,3 @@ import {AnchorProvider, BN, BorshCoder, EventParser, Program} from "@coral-xyz/anchor"; | ||
if(storedCommitments.has(commitHash)) { | ||
storedHeader = new SolanaBtcStoredHeader(log.data.header); | ||
storedHeader = new SolanaBtcStoredHeader(log.data.header as any); | ||
break; | ||
@@ -171,4 +171,4 @@ } | ||
if(log.name==="StoreFork" || log.name==="StoreHeader") { | ||
if(Buffer.from(log.data.commitHash).equals(spvCommitmentHash)) { | ||
storedHeader = new SolanaBtcStoredHeader(log.data.header); | ||
if(Buffer.from(log.data.commitHash as any).equals(spvCommitmentHash)) { | ||
storedHeader = new SolanaBtcStoredHeader(log.data.header as any); | ||
break; | ||
@@ -269,3 +269,3 @@ } | ||
try { | ||
const blockHashHex = Buffer.from(acc.tipBlockHash).reverse().toString("hex"); | ||
const blockHashHex = Buffer.from(acc.tipBlockHash as any).reverse().toString("hex"); | ||
console.log("[BtcRelaySynchronizer]: Stored tip hash: ", blockHashHex); | ||
@@ -575,3 +575,3 @@ const isInMainChain = await this.bitcoinRpc.isInMainChain(blockHashHex); | ||
let forkId: BN = mainState.forkCounter.toNumber(); | ||
let forkId: number = mainState.forkCounter.toNumber(); | ||
@@ -578,0 +578,0 @@ let tx = new Transaction(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
416343