-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BCI-3862][chainlink-common] - Change DSL Block primitive to string instead of int #683
Conversation
@@ -151,7 +151,7 @@ message Comparator { | |||
} | |||
|
|||
message Block{ | |||
uint64 block_number = 1; |
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.
Should I instead deprecate the previous field and add a new one because of backward compatibility? Could try if something like this works:
message Block {
uint64 block_number_deprecated = 1 [deprecated = true]; // rename prev field and mark as deprecated
string block_number = 3; // new field with string type that has the old name
ComparisonOperator operator = 2;
}
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.
Usually that is the best practice, but I don't see anyone using block querying so as long as you update tests in core evm it is fine to make a breaking change.
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.
You'll have to update the PGDSLParser here, and check if any of the LP tests need to be fixed after this change
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.
Fixed in this PR: smartcontractkit/chainlink#14033
"update EVM implementation to reflect changes" means updating this file? I don't see we are directly referencing the changed field |
* [KS-408] Handle nils in Unwrap/UnwrapTo * Address feedback
71c871b
to
8b09fef
Compare
reopened here with signed commits #688 |
Task Description:
Change ChainReader block DSL uint64 type to string and update EVM implementation to reflect changes
This PR:
Changed the block proto field and fixed all the reference failures within
chainlink-common
Ticket:
Unblocks: