make transfer private
MODIFY
src/plasma/erc20.ts
src/plasma/erc20.ts
@@ -129,4 +129,8 @@ export class ERC20 extends BaseToken {
);
}
+ transfer(to: string, amount: TYPE_AMOUNT, option?: ITransactionOption) {
+ return this['transfer_'](to, amount, option);
+ }
+
}
\ No newline at end of file

MODIFY
src/plasma/ether.ts
src/plasma/ether.ts
import { TYPE_AMOUNT } from "../types";
import { IPlasmaContracts, ITransactionOption } from "../interfaces";
import { Web3SideChainClient, Converter, BaseToken } from "../utils";
-import { DepositManager } from "./deposit_manager";
import { ERC20 } from "./erc20";
-import { RegistryContract } from "./registry";
-import { ExitManager } from "../pos";
-import { WithdrawManager } from "./withdraw_manager";
export class Ether extends BaseToken {

MODIFY
src/pos/erc20.ts
src/pos/erc20.ts
@@ -174,4 +174,8 @@ export class ERC20 extends POSToken {
});
}
+ transfer(to: string, amount: TYPE_AMOUNT, option?: ITransactionOption) {
+ return this['transfer_'](to, amount, option);
+ }
+
}
\ No newline at end of file

MODIFY
src/utils/base_token.ts
src/utils/base_token.ts
@@ -193,7 +193,7 @@ export class BaseToken {
}
}
- transfer(to: string, amount: TYPE_AMOUNT, option?: ITransactionOption) {
+ private transfer_(to: string, amount: TYPE_AMOUNT, option?: ITransactionOption) {
return this.getContract().then(contract => {
const method = contract.method(
"transfer",

make transfer private