perun-network / erdstall-ts-sdk

TypeScript client SDK to interact with Erdstall.
Apache License 2.0
5 stars 2 forks source link

Remove `bigint` wrapper type #104

Closed ndzik closed 2 years ago

ndzik commented 2 years ago
function asABI() {
  return ethers.BigNumber.from(this.value); // BigInteger -> bigint -> BigNumber
}

The encoding of BigNumber and bigint by ethers.utils.defaultAbiCoder are equivalent, so that is the reason why we only needed to change the bigint encoding for JSON.