mirror of
https://github.com/embarklabs/embarkjs-plasma.git
synced 2025-01-09 23:55:41 +00:00
Rename functions
This commit is contained in:
parent
8e588191c3
commit
eb5679292a
@ -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}.`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user