Skip to content

Commit

Permalink
Remove near.deployContract as it's broken anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Aug 27, 2019
1 parent 848181f commit 27da96c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions lib/near.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions lib/near.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions src.ts/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@ export class Near {
return new Contract(account, contractId, options);
}

/**
* Backwards compatibility method. Use `contractAccount.deployContract` or `yourAccount.createAndDeployContract` instead.
* @param contractId
* @param wasmByteArray
*/
async deployContract(contractId: string, wasmByteArray: Uint8Array): Promise<string> {
console.warn('near.deployContract is deprecated. Use `contractAccount.deployContract` or `yourAccount.createAndDeployContract` instead.');
const account = new Account(this.connection, contractId);
const result = await account.deployContract(wasmByteArray);
return result.logs[0].hash;
}

/**
* Backwards compatibility method. Use `yourAccount.sendMoney` instead.
* @param amount
Expand Down

0 comments on commit 27da96c

Please sign in to comment.