File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class RocketPoolDeployer {
133133 ] ,
134134 ) ;
135135 } else {
136- const abi = compressABI ( loadABI ( './contracts/contract/casper/compiled/Deposit.abi' ) ) ;
136+ const abi = loadABI ( './contracts/contract/casper/compiled/Deposit.abi' ) ;
137137 this . addStage ( 'Setup deposit contract' , 10 , [
138138 async ( ) => this . setNetworkContractAddress ( 'casperDeposit' , opts . depositAddress ) ,
139139 async ( ) => this . setNetworkContractAbi ( 'casperDeposit' , abi ) ,
@@ -272,7 +272,10 @@ export class RocketPoolDeployer {
272272 }
273273
274274 async setNetworkContractAbi ( name , abi ) {
275- const compressedAbi = compressABI ( abi ) ;
275+ let compressedAbi = abi ;
276+ if ( Array . isArray ( compressedAbi ) ) {
277+ compressedAbi = compressABI ( abi ) ;
278+ }
276279 this . log ( `- Setting abi for "${ name } " in storage to ${ compressedAbi . substr ( 0 , 40 ) } ...` ) ;
277280 // Compress and store the ABI by name
278281 await this . rocketStorageInstance . setString (
You can’t perform that action at this time.
0 commit comments