ethers-io / ethers.js

Complete Ethereum library and wallet implementation in JavaScript.
https://ethers.org/
MIT License
7.95k stars 1.85k forks source link

[v6] Migration Notes: Things that changed #3795

Closed corbanbrook closed 1 year ago

corbanbrook commented 1 year ago

Suggestion

While porting a library from ethers v5 -> v6 I came across functions which were renamed or function differently than their v5 counterparts. I thought I would make some notes in this ticket to get some clarification andto help others with their migration efforts.

Also As @ricmoo noted in https://github.com/ethers-io/ethers.js/issues/3725 "I’ve been using v6 forever now, so I’ve kinda lost track of what has changed." :) to help with migration docs.

v5 -> v6

These are the surface level utils + constants ive noticed so far.

ricmoo commented 1 year ago

Thanks! I’ll add all these for the next patch release in a few hours. ;)

ricmoo commented 1 year ago

Added to the migration document.

Thanks! :)

quiet-node commented 9 months ago

what is splitSignature updated to?

ricmoo commented 9 months ago

@quiet-node Signature.from(sig) where sig can be properties (like { r, s, v }) or a serialized hexdata.

The info is here. :)

quiet-node commented 9 months ago

@ricmoo thanks a lot! this is embarrassing I was literally on that Migrating from v5 page and couldn't find I was blind. Thanks much!

ricmoo commented 9 months ago

No worries! 'm always here to help. I'm also on Discord anytime too. :)

OkoliEvans commented 6 months ago

Thanks for this

SheeranJL commented 3 months ago

Jesus Christ thank you so much for this.. my god...

nguyennhukhanh commented 3 months ago

Nice