Skip to content

Commit 77a2e2e

Browse files
committed
Fix double ABI compression on new deploy
1 parent 1866c91 commit 77a2e2e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/_helpers/deployer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)