tornado-core 1.0.19

* fixed tovarish client bug
This commit is contained in:
Tornado Contrib 2024-10-02 19:23:55 +00:00
parent 2092214da2
commit f73b9ecbff
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
6 changed files with 15 additions and 10 deletions

5
dist/index.js vendored

@ -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

@ -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

@ -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

@ -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",

@ -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 });