code: function setType(object, type) {
      Object.defineProperty(object, '_ethersType', { configurable: false, value: type, writable: false });
  }
docs: There are some issues with instanceof with npm link, so we use this to ensure types are what we expect.