UNPKG

@1hive/connect-core

Version:

Access and interact with Aragon Organizations and their apps.

17 lines 539 B
export default class Transaction { constructor(data) { if (!data.to) { throw new Error(`Could not cosntruct trasanction: missing 'to'`); } if (!data.from) { throw new Error(`Could not cosntruct trasanction: missing 'from'`); } if (!data.data) { throw new Error(`Could not cosntruct trasanction: missing 'data'`); } this.data = data.data; this.from = data.from; this.to = data.to; } } //# sourceMappingURL=Transaction.js.map