This is a major version release with several breaking changes:
- Solidity functions with only one return variable, return it directly
ethers._SigningKey
is removed- The entire package is one large package, so require('ethers-utils') should become require('ethers/utils'); similarly 'ethers-contracts' ('ethers/contracts'), 'ethers-providers' ('ethers/providers') and 'ethers-wallet' ('ethers/wallet').
- The AbiCoder has been moved to utils, so
Interface.encodeParams
becomesAbiCoder.prototype.encode
and similarlyInterface.decodeParams
becomesAbiCoder.prototype.decode
. - Legacy boolean Provider network parameters no longer work; for Ropsten, please pass in "ropsten"
- Provider.prototype.testnet is no longer present
- The Interface
method.inputs
andmethod.outputs
have changed to support ABI v2, so they are no longer compatible with the old format and each have 2 sub-properties,types
andnames
.