@aurigami/sdk 1.11.0-beta → 1.11.0-beta1

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-beta",
2
+ "version": "1.11.0-beta1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -106,6 +106,11 @@ export class PlyGameReadWrite extends PlyGameRead {
106
106
  .connect(this._networkConnection.signer!)
107
107
  .makeBetOnce(amount.rawAmount());
108
108
  }
109
+ public async approve(amount: TokenAmount): Promise<TransactionResponse> {
110
+ return this.env.ply
111
+ .connect(this._networkConnection.signer!)
112
+ .approve(this.env.plygame.address, amount.rawAmount());
113
+ }
109
114
  }
110
115
 
111
116
  export class PlyGame extends BlockchainEntity {