-
Notifications
You must be signed in to change notification settings - Fork 229
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
Pass baggage in ZCF through buildRootObject to start() #5658
Conversation
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
const contractBaggage = provide(baggage, 'contractBaggage', () => | ||
makeScalarBigMapStore('zoeContract'), | ||
); |
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.
const contractBaggage = provide(baggage, 'contractBaggage', () => | |
makeScalarBigMapStore('zoeContract'), | |
); | |
const contractBaggage = provideDurableMapStore(baggage, 'contractBaggage'); |
@@ -11,5 +11,6 @@ | |||
* instanceRecordFromZoe: InstanceRecord, | |||
* issuerStorageFromZoe: IssuerRecords, | |||
* privateArgs?: object, | |||
* baggage?: MapStore<string,any>, |
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.
Also the startContract
implementation in zcfZygote, right?
bf46bdb
to
3333d60
Compare
#5635 will include what's necessary. |
refs: #5593
refs: #5635
Description
Pass the
baggage
provided tobuildRootObject()
tostartContract()
, which callsstart()
, to make it available to the zoe contract.Security Considerations
contract has its own sub-baggage.
Documentation Considerations
When we write up durability, the Zoe contract interface needs to mention that the baggage comes in a separate argument after
privateArgs
.Testing Considerations
We'll need a test showing upgrade of a contract, but we already knew that.