crosslightning-evm
Advanced tools
Comparing version 2.0.1 to 2.0.3
@@ -89,8 +89,12 @@ "use strict"; | ||
} | ||
const fromBlock = lastBlock + 1; | ||
if (fromBlock > toBlock) { | ||
return; | ||
} | ||
const logs = yield this.provider.getLogs({ | ||
fromBlock: lastBlock + 1, | ||
fromBlock, | ||
toBlock, | ||
address: this.evmSwapProgram.contract.address | ||
}); | ||
console.log("Returned past logs: ", logs); | ||
console.log("Returned past logs (" + fromBlock + "-" + toBlock + "): ", logs); | ||
//Check the logs | ||
@@ -97,0 +101,0 @@ for (let log of logs) { |
{ | ||
"name": "crosslightning-evm", | ||
"version": "2.0.1", | ||
"version": "2.0.3", | ||
"description": "EVM specific base implementation", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -97,4 +97,10 @@ import {EVMSwapData} from "../swaps/EVMSwapData"; | ||
const fromBlock = lastBlock+1; | ||
if(fromBlock>toBlock) { | ||
return; | ||
} | ||
const logs: Array<Log> = await this.provider.getLogs({ | ||
fromBlock: lastBlock+1, | ||
fromBlock, | ||
toBlock, | ||
@@ -104,3 +110,3 @@ address: this.evmSwapProgram.contract.address | ||
console.log("Returned past logs: ", logs); | ||
console.log("Returned past logs ("+fromBlock+"-"+toBlock+"): ", logs); | ||
@@ -107,0 +113,0 @@ //Check the logs |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
321147
7663