Rename functions

This commit is contained in:
emizzle 2019-06-06 20:03:07 +10:00
parent 8e588191c3
commit eb5679292a
No known key found for this signature in database
GPG Key ID: 1FD4BAB3C37EE9BA

View File

@ -113,7 +113,7 @@ export default class BaseEmbarkOmg {
} }
} }
async txChildChain(toAddress, val) { async send(toAddress, val) {
//const val = "555"; //const val = "555";
// const toAddress = "0x38d5beb778b6e62d82e3ba4633e08987e6d0f990"; // const toAddress = "0x38d5beb778b6e62d82e3ba4633e08987e6d0f990";
const utxos = await this.childChain.getUtxos(this.address); const utxos = await this.childChain.getUtxos(this.address);
@ -168,7 +168,7 @@ export default class BaseEmbarkOmg {
} }
} }
async exitChildChain(fromAddress) { async exit(fromAddress) {
const utxos = await this.childChain.getUtxos(fromAddress); const utxos = await this.childChain.getUtxos(fromAddress);
if (utxos.length <= 0) { if (utxos.length <= 0) {
const message = `No UTXOs found on the Plasma chain for ${fromAddress}.`; const message = `No UTXOs found on the Plasma chain for ${fromAddress}.`;