@campnetwork/origin 1.2.0-0 → 1.2.0-1

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/core.cjs CHANGED
@@ -174,7 +174,7 @@ if(s.simulate)return l;try{const e=yield null===(o=this.viemClient)||void 0===o?
174
174
  * const tbaAddress = await origin.getTokenBoundAccount(1n);
175
175
  * console.log(`TBA Address: ${tbaAddress}`);
176
176
  * ```
177
- */getTokenBoundAccount(e){return a(this,void 0,void 0,(function*(){try{return yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS,this.environment.IPNFT_ABI,"getAccount",[e])}catch(t){throw new Error(`Failed to get Token Bound Account for token ${e}: ${t instanceof Error?t.message:String(t)}`)}}))}
177
+ */getTokenBoundAccount(e){return a(this,void 0,void 0,(function*(){try{return yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS,this.environment.IPNFT_ABI,"getAccount",[e],{simulate:!0})}catch(t){throw new Error(`Failed to get Token Bound Account for token ${e}: ${t instanceof Error?t.message:String(t)}`)}}))}
178
178
  /**
179
179
  * Get royalty information for a token ID, including the token bound account address and its balance.
180
180
  * @param {bigint} tokenId - The token ID to check royalties for.
package/dist/core.esm.js CHANGED
@@ -337,7 +337,7 @@ if(a.simulate)return p;try{const e=yield null===(r=this.viemClient)||void 0===r?
337
337
  * const tbaAddress = await origin.getTokenBoundAccount(1n);
338
338
  * console.log(`TBA Address: ${tbaAddress}`);
339
339
  * ```
340
- */getTokenBoundAccount(e){return m(this,void 0,void 0,(function*(){try{return yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS,this.environment.IPNFT_ABI,"getAccount",[e])}catch(t){throw new Error(`Failed to get Token Bound Account for token ${e}: ${t instanceof Error?t.message:String(t)}`)}}))}
340
+ */getTokenBoundAccount(e){return m(this,void 0,void 0,(function*(){try{return yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS,this.environment.IPNFT_ABI,"getAccount",[e],{simulate:!0})}catch(t){throw new Error(`Failed to get Token Bound Account for token ${e}: ${t instanceof Error?t.message:String(t)}`)}}))}
341
341
  /**
342
342
  * Get royalty information for a token ID, including the token bound account address and its balance.
343
343
  * @param {bigint} tokenId - The token ID to check royalties for.
@@ -3842,7 +3842,7 @@ class Origin {
3842
3842
  getTokenBoundAccount(tokenId) {
3843
3843
  return __awaiter(this, void 0, void 0, function* () {
3844
3844
  try {
3845
- const tbaAddress = yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS, this.environment.IPNFT_ABI, "getAccount", [tokenId]);
3845
+ const tbaAddress = yield this.callContractMethod(this.environment.DATANFT_CONTRACT_ADDRESS, this.environment.IPNFT_ABI, "getAccount", [tokenId], { simulate: true });
3846
3846
  return tbaAddress;
3847
3847
  }
3848
3848
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campnetwork/origin",
3
- "version": "1.2.0-0",
3
+ "version": "1.2.0-1",
4
4
  "main": "dist/core.cjs",
5
5
  "exports": {
6
6
  ".": {