-
Notifications
You must be signed in to change notification settings - Fork 199
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
Add PackageVersion to ContractInstance #19224
Conversation
@@ -139,6 +141,7 @@ message Versioned { | |||
message FatContractInstance { | |||
bytes contract_id = 1; | |||
string package_name = 9; // required *since dev* | |||
repeated uint32 package_version = 10; // required *since dev* |
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.
shouldn't we adapt the comments to say since 1.16?
@@ -2125,7 +2125,10 @@ private[lf] object SBuiltin { | |||
|
|||
private def extractContractInfo( | |||
tmplId2TxVersion: TypeConName => TransactionVersion, | |||
tmplId2PackageName: (TypeConName, TransactionVersion) => Option[PackageName], | |||
tmplId2PackageName: ( |
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.
tmplId2PackageName: ( | |
tmplId2PackageNameVersion: ( |
machine.lookupContract(coid) { | ||
case V.ContractInstance(packageNameVersion, srcTmplId, coinstArg) => | ||
packageNameVersion match { | ||
case Some((pkgName, _)) => |
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.
where is pkgVersion
used?
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.
lgtm, although I couldn't tell immediately where the new PackageVersion is used
We will not persist package version for 2.x |
No description provided.