@initia/initia.js 0.2.23 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -138,8 +138,8 @@ class qf {
|
|
|
138
138
|
throw new Error("Query param should be passed via the params argument");
|
|
139
139
|
}
|
|
140
140
|
computeEndpoint(t) {
|
|
141
|
-
const e = new URL(this.baseURL);
|
|
142
|
-
return
|
|
141
|
+
const e = t.replace(/^\/+/, ""), r = new URL(this.baseURL);
|
|
142
|
+
return r.pathname.endsWith("/") || (r.pathname += "/"), r.pathname += e, r.toString();
|
|
143
143
|
}
|
|
144
144
|
async getRaw(t, e = {}) {
|
|
145
145
|
this.validateEndpoint(t);
|
|
@@ -4228,7 +4228,7 @@ class rr extends m {
|
|
|
4228
4228
|
token: o == null ? void 0 : o.toAmino(),
|
|
4229
4229
|
sender: n,
|
|
4230
4230
|
receiver: s,
|
|
4231
|
-
timeout_height:
|
|
4231
|
+
timeout_height: i == null ? void 0 : i.toAmino(),
|
|
4232
4232
|
timeout_timestamp: c,
|
|
4233
4233
|
memo: d
|
|
4234
4234
|
}
|
|
@@ -12865,7 +12865,7 @@ class no extends m {
|
|
|
12865
12865
|
token_ids: n,
|
|
12866
12866
|
sender: s,
|
|
12867
12867
|
receiver: i,
|
|
12868
|
-
timeout_height:
|
|
12868
|
+
timeout_height: c == null ? void 0 : c.toAmino(),
|
|
12869
12869
|
timeout_timestamp: d,
|
|
12870
12870
|
memo: g
|
|
12871
12871
|
}
|