UNPKG

godprotocol

Version:

A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.

31 lines (22 loc) 557 B
import Storage from "godprotocol/Datatypes/functions/storage.js"; class Res extends Storage{ constructor(config, account){ super(account) this.config = config } content = async()=>{ return await this.literal() } literal = async()=>{ if (this.value){ return this.value } this.value = await this.account.vm.execute({ type:'address', value: this.config.value, }, {chain: this.account.chain, cloth: true}) this.value = await this.value.literal() return this.value } } export default Res