Closed rooklift closed 3 years ago
The call signature of the js transfer method here doesn't match the docs.
transfer
Also, I suppose it could be simplified down to something like this:
transfer(destUnit, resourceType, amount) { let destID = typeof destUnit === "string" ? destUnit : destUnit.id; return `t ${this.id} ${destID} ${resourceType} ${amount}`; }
I've not actually tested this.
Oh good catch, thanks! well test it later
PR #78 (basic tests passed)
close #78
The call signature of the js
transfer
method here doesn't match the docs.Also, I suppose it could be simplified down to something like this:
I've not actually tested this.