-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/celo cip 64 support #3
Conversation
apart from the ordering comments looking good |
src/chains/celo/serializers.ts
Outdated
if ('maxFeePerGas' in tx && 'maxPriorityFeePerGas' in tx) { | ||
// process as CIP42 if any of these fields are present. realistically gatewayfee is not used but is part of spec | ||
if ( | ||
'gatewayFee' in tx || | ||
'gatewayFeeRecipient' in tx || | ||
('feeCurrency' in tx && tx.type && tx.type === 'cip42') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't remove isCIP42
, I'd have a isCIP64
method to hide implementation details here
if (isCIP4(tx)) {
return serializeTransactionCIP64(
tx as TransactionSerializableCIP64,
signature,
)
}
if (isCIP42(tx)) {
...
}
5230db1
to
fe47e3d
Compare
size-limit report 📦
|
src/chains/celo/formatters.test.ts
Outdated
"from": "0x045d685d23e8aa34dc408a66fb408f20dc84d785", | ||
"gas": 1527520n, | ||
"gasPrice": 562129081n, | ||
"gatewayFee": "0x0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why or if this change is needed. I'd like confirmation about whether this change was right, or if I broke something elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test is failing at src/actions/public/getBlock.test.ts:54:27
, in a way that looks the same as this. So, I'm inclined to believe that I somehow broke this.
Would love to see this PR'd upstream into Viem! |
* auto-publish provenance statements on release * undo quotation accidental format
Thanks for the encouragement! PR for upstream is here: wevm#1379 |
closing in favor of wevm#1379 |
No description provided.