Minor updates #1

Closed
tornadocontrib wants to merge 67 commits from tornadocontrib/tornado-core:main into main
6 changed files with 15 additions and 10 deletions
Showing only changes of commit f73b9ecbff - Show all commits

5
dist/index.js vendored
View File

@ -6985,10 +6985,11 @@ class TovarishClient extends RelayerClient {
filterRelayer(relayer) {
return __async$1(this, null, function* () {
var _a;
const { ensName, relayerAddress, tovarishHost: hostname, tovarishNetworks } = relayer;
if (!hostname || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
const { ensName, relayerAddress, tovarishHost, tovarishNetworks } = relayer;
if (!tovarishHost || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
return;
}
const hostname = `${tovarishHost}/${this.netId}`;
try {
const status = yield this.askRelayerStatus({ hostname, relayerAddress });
return {

5
dist/index.mjs vendored
View File

@ -6964,10 +6964,11 @@ class TovarishClient extends RelayerClient {
filterRelayer(relayer) {
return __async$1(this, null, function* () {
var _a;
const { ensName, relayerAddress, tovarishHost: hostname, tovarishNetworks } = relayer;
if (!hostname || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
const { ensName, relayerAddress, tovarishHost, tovarishNetworks } = relayer;
if (!tovarishHost || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
return;
}
const hostname = `${tovarishHost}/${this.netId}`;
try {
const status = yield this.askRelayerStatus({ hostname, relayerAddress });
return {

5
dist/tornado.umd.js vendored
View File

@ -72394,10 +72394,11 @@ class TovarishClient extends _relayerClient__WEBPACK_IMPORTED_MODULE_0__/* .Rela
filterRelayer(relayer) {
return __async(this, null, function* () {
var _a;
const { ensName, relayerAddress, tovarishHost: hostname, tovarishNetworks } = relayer;
if (!hostname || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
const { ensName, relayerAddress, tovarishHost, tovarishNetworks } = relayer;
if (!tovarishHost || !(tovarishNetworks == null ? void 0 : tovarishNetworks.includes(this.netId))) {
return;
}
const hostname = `${tovarishHost}/${this.netId}`;
try {
const status = yield this.askRelayerStatus({ hostname, relayerAddress });
return {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@tornado/core",
"version": "1.0.18",
"version": "1.0.19",
"description": "An SDK for building applications on top of Privacy Pools",
"main": "./dist/index.js",
"module": "./dist/index.mjs",

View File

@ -109,12 +109,14 @@ export class TovarishClient extends RelayerClient {
}
async filterRelayer(relayer: CachedRelayerInfo): Promise<TovarishInfo | RelayerError | undefined> {
const { ensName, relayerAddress, tovarishHost: hostname, tovarishNetworks } = relayer;
const { ensName, relayerAddress, tovarishHost, tovarishNetworks } = relayer;
if (!hostname || !tovarishNetworks?.includes(this.netId)) {
if (!tovarishHost || !tovarishNetworks?.includes(this.netId)) {
return;
}
const hostname = `${tovarishHost}/${this.netId}`;
try {
const status = await this.askRelayerStatus({ hostname, relayerAddress });