From b4eb18e278b2bc8eef3aa428270d0425d340b116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=96=B0=E5=88=9A?= <719802264@qq.com> Date: Tue, 2 Feb 2021 17:26:50 +0800 Subject: [PATCH] update context --- test/utils/VDODOContext.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/utils/VDODOContext.ts b/test/utils/VDODOContext.ts index 3bd7601..814e516 100644 --- a/test/utils/VDODOContext.ts +++ b/test/utils/VDODOContext.ts @@ -90,14 +90,15 @@ export class VDODOContext { ] ) + + await this.Governance.methods.initOwner( + this.Deployer + ).send(this.sendParam(this.Deployer)) + await this.Governance.methods.setVDODOAddress( this.VDODO.options.address ).send(this.sendParam(this.Deployer)) - - await this.Governance.methods.initOwner( - this.Deployer - ).send(this.sendParam(this.Deployer)) - + await this.DODOApprove.methods.init(this.Deployer,this.DODOApproveProxy.options.address).send(this.sendParam(this.Deployer)); await this.DODOApproveProxy.methods.init(this.Deployer, [this.VDODO.options.address]).send(this.sendParam(this.Deployer));