store owner in deploy manifest

This commit is contained in:
De Facto 2021-02-19 18:48:03 +08:00
parent e223511bc3
commit 18882f23df
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ interface OracleDeployInfo {
}
interface AggregatorDeployInfo {
pubkey: PublicKey
owner: PublicKey
config: IAggregatorConfig
oracles: {
@ -118,6 +119,7 @@ export class Deployer {
key,
aggregatorSetup
)
// get the value again to wrap it in proxy...
info = this.state.aggregators[key]
}
@ -129,8 +131,6 @@ export class Deployer {
let oinfo = info.oracles[oracleName]
if (!oinfo) {
oinfo = await this.createOracle(info, oracleName, oracleSetup)
// hmm... not triggering save
info.oracles[oracleName] = oinfo
}
console.log(`${key} added oracle:`, oracleSetup.owner)
@ -184,6 +184,7 @@ export class Deployer {
return {
pubkey: account.publicKey,
owner: this.wallet.pubkey,
config,
oracles: {},
}