Skip to content
Snippets Groups Projects

New design of qr code template

Merged Boyan Tsolov requested to merge template-update into master
4 files
+ 27
25
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -66,7 +66,8 @@ class AeternityService {
throw new Error("Aeternity contract bytecode not defined");
}
//Default value for block height step is 2, based on tests
this._blockHeightStep = typeof blockHeightStep === "number" ? blockHeightStep : 2;
this._blockHeightStep =
typeof blockHeightStep === "number" ? blockHeightStep : 2;
this._nodeUrls = typeof nodeUrls === "string" ? [nodeUrls] : nodeUrls;
this._compilerUrls =
typeof compilerUrls === "string" ? [compilerUrls] : compilerUrls;
@@ -144,8 +145,9 @@ class AeternityService {
getBlockHeightRange(startingBlock) {
return __awaiter(this, void 0, void 0, function* () {
const endBlockHeight = startingBlock + this._blockHeightStep;
const { data } = yield this.requestNode({ url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}` })
.then(({ data }) => data);
const { data } = yield this.requestNode({
url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}`,
}).then(({ data }) => data);
return data;
});
}
Loading