Use address in the wallet config for module initialization during genesis #879
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The oracle object for
SuiEcho
needs to be transferred to some trusted address during module initialization in genesissui/sui_programmability/framework/sources/CrossChainAirdrop.move
Lines 59 to 68 in 03d1e84
Right now we are using a hardcoded address, and this presents a few problems:
Solution
We will transfer the oracle object to the address that initializes the modules during genesis. The question is what should this genesis address be?
Right now this address is default to be "0x00...000". This PR replaces it with the last address in the wallet config so that the oracle object can be transferred to an address controlled by the wallet. This is a simple but temporary solution that unblocks GDC.
After we are done with the migration to manage keys on client(as opposed to the REST server), the client should specify the address they want to use for initializing modules when calling
/genesis