@@ -5,19 +5,19 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
55 const { deployments, network} = hre ;
66 const { deployer} = await getNamedAccounts ( ) ;
77 const { deploy, log} = deployments ;
8- const FEDERATION_LAST_VERSION = 'v3 '
8+ const FEDERATION_LAST_VERSION = 'v2 '
99
1010 const federationProxyAddress = await address . getFederationProxyAddress ( hre ) ;
1111 if ( federationProxyAddress ) {
12- const Federation = await deployments . getArtifact ( 'Federation ' ) ;
12+ const Federation = await deployments . getArtifact ( 'FederationV2 ' ) ;
1313 const federation = new web3 . eth . Contract ( Federation . abi , federationProxyAddress ) ;
1414 const currentFederationVersion = federation . methods . version ( ) . call ( ) ;
1515 if ( currentFederationVersion === FEDERATION_LAST_VERSION ) {
1616 return ;
1717 }
1818 }
1919
20- const deployResult = await deploy ( 'Federation ' , {
20+ const deployResult = await deploy ( 'FederationV2 ' , {
2121 from : deployer ,
2222 log : true
2323 } ) ;
@@ -35,4 +35,4 @@ module.exports = async function(hre) { // HardhatRuntimeEnvironment
3535 }
3636} ;
3737module . exports . id = 'deploy_federation' ; // id required to prevent reexecution
38- module . exports . tags = [ 'Federation ' , 'Upgrade' , 'DeployFromScratch' , 'IntegrationTest' ] ;
38+ module . exports . tags = [ 'FederationV2 ' , 'Upgrade' , 'DeployFromScratch' , 'IntegrationTest' ] ;
0 commit comments