@hashgraphonline/hashinal-wc 1.0.92-canary-2 → 1.0.94
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/README.md +1 -0
- package/dist/es/hashinal-wc.es.js +2 -2
- package/dist/es/hashinal-wc.es.js.map +1 -1
- package/dist/es/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/umd/hashinal-wc.umd.js +1 -1
- package/dist/umd/hashinal-wc.umd.js.map +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6001,9 +6001,9 @@ class HashinalsWalletConnectSDK {
|
|
|
6001
6001
|
let transaction = await new TokenMintTransaction().setTokenId(tokenId).setMetadata([Buffer$1.from(metadata, "utf-8")]).sign(supplyKey);
|
|
6002
6002
|
return this.executeTransaction(transaction);
|
|
6003
6003
|
}
|
|
6004
|
-
async getMessages(topicId, lastTimestamp, disableTimestampFilter = false) {
|
|
6004
|
+
async getMessages(topicId, lastTimestamp, disableTimestampFilter = false, network) {
|
|
6005
6005
|
var _a, _b;
|
|
6006
|
-
const networkPrefix = this.getNetworkPrefix();
|
|
6006
|
+
const networkPrefix = network || this.getNetworkPrefix();
|
|
6007
6007
|
const baseUrl = `https://${networkPrefix}.mirrornode.hedera.com`;
|
|
6008
6008
|
const timestampQuery = Number(lastTimestamp) > 0 && !disableTimestampFilter ? `×tamp=gt:${lastTimestamp}` : "";
|
|
6009
6009
|
const url = `${baseUrl}/api/v1/topics/${topicId}/messages?limit=200${timestampQuery}`;
|