pipeos-one / chainlens

Fine-grained browser and searcher of Ethereum smart contracts
https://chainlens.pipeos.one
GNU General Public License v3.0
2 stars 2 forks source link

Fix Natspec model - method key number -> string #2

Open loredanacirstea opened 4 years ago

loredanacirstea commented 4 years ago
@model()
export class NatspecMethods extends Model {
  [prop: number]: NatspecMethod;

  constructor(data?: Partial<NatspecMethods>) {
    super(data);
  }
}

https://github.com/loredanacirstea/dType-pipeos-contracts/commit/04813ea289fb43a693d758b5eb2d69863be195b6#diff-2b290993f649c2c4d2dcb4d6bf564c33R45

For some reason, string was not allowed, even though in theory, number and string are the only ones allowed.