@aurigami/sdk 1.11.0-beta4 → 1.11.0-beta5

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0-beta4",
2
+ "version": "1.11.0-beta5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -86,7 +86,9 @@ export class PlyGameRead extends BlockchainEntityRead {
86
86
  }
87
87
 
88
88
  public async getPlyGameResultsInTransaction(txHash: Address): Promise<PlyGameBetResult[]> {
89
- let tx = await this._networkConnection.provider.getTransactionReceipt(txHash);
89
+ // wait for the tx to be mined if needed.
90
+ let tx = await this._networkConnection.provider.waitForTransaction(txHash, 1);
91
+
90
92
  let filter = this.env.plygame.filters.BetMade();
91
93
  let betMadeEvents: PlyBetMadeEvent[] = tx.logs
92
94
  .filter((log) => isSameAddress(log.topics[0], filter.topics![0] as string))