rename isExited -> isWithdrawExited
MODIFY
src/plasma/erc721.ts
src/plasma/erc721.ts
@@ -150,4 +150,6 @@ export class ERC721 extends PlasmaToken {
);
});
}
+
+
}

MODIFY
src/plasma/ether.ts
src/plasma/ether.ts
@@ -13,18 +13,13 @@ export class Ether extends BaseToken {
) {
super({
- isParent: true,
+ isParent: isParent,
address: null as any,
name: null as any,
bridgeType: null
}, client);
}
- getBalance(userAddress: string, option: ITransactionOption = {}) {
- option.from = userAddress;
- return this.readTransaction(option);
- }
-
deposit(amount: TYPE_AMOUNT, option: ITransactionOption = {}) {
return this.contracts_.depositManager.getContract().then(contract => {
option.value = Converter.toHex(amount);

MODIFY
src/plasma/index.ts
src/plasma/index.ts
@@ -29,7 +29,9 @@ export class PlasmaClient extends BridgeClient {
}
erc20(tokenAddress: string, isParent?: boolean) {
- tokenAddress = tokenAddress ? tokenAddress : MATIC_TOKEN_ADDRESS_ON_POLYGON;
+ tokenAddress = tokenAddress == null && !isParent ?
+ MATIC_TOKEN_ADDRESS_ON_POLYGON : tokenAddress;
+
return new ERC20(
tokenAddress,
isParent,

MODIFY
src/pos/erc721.ts
src/pos/erc721.ts
@@ -278,7 +278,7 @@ export class ERC721 extends POSToken {
});
}
- isExited(txHash: string) {
+ isWithdrawExited(txHash: string) {
if (!txHash) {
throw new Error(`txHash not provided`);
}
@@ -291,7 +291,7 @@ export class ERC721 extends POSToken {
});
}
- isExitedMany(txHash: string) {
+ isWithdrawExitedMany(txHash: string) {
if (!txHash) {
throw new Error(`txHash not provided`);
}

rename isExited -> isWithdrawExited