Skip to content

Commit 4027b68

Browse files
authored
Merge pull request #2 from flowerpowerdao/main
fix
2 parents e22d8e6 + a7c1b3f commit 4027b68

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

backup/pem.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export function decode(rawKey: string) {
1919
if (buf.length != 85) {
2020
throw 'expecting byte length 85 but got ' + buf.length;
2121
}
22-
let secretKey = Buffer.concat([buf.slice(16, 48), buf.slice(53, 85)]);
22+
let secretKey = Buffer.concat([buf.slice(16, 48)]);
2323
return Ed25519KeyIdentity.fromSecretKey(secretKey);
2424
}

deploy/deploy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let identity = decode(pemData);
3535
let actor = getActor(network, identity);
3636

3737
if (mode === 'reinstall') {
38-
console.log(chalk.yellow('REINSTALL MODE'));
38+
console.log(chalk.yellow('(!!!) REINSTALL MODE'));
3939
}
4040
console.log(chalk.yellow(`Identity: ${identityName}`));
4141
console.log(chalk.yellow(`Controller: ${identity.getPrincipal().toText()}`));

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"test-br": "npm run deploy-test && tsx ./backup/test.ts",
3333
"test-br-assets": "tsx ./backup/test-assets.ts",
3434
"deploy": "tsx ./deploy/deploy.ts",
35+
"upgrade-staging": "dfx deploy --network ic staging --upgrade-unchanged",
3536
"upgrade-production": "dfx canister --network ic stop production && dfx deploy --network ic production --upgrade-unchanged && dfx canister --network ic start production",
3637
"": ""
3738
},

src/main.mo

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ shared ({ caller = init_minter }) actor class Canister(cid : Principal, initArgs
464464
_Sale.failedSales();
465465
};
466466

467-
public query func saleTransactions() : async [SaleTypes.SaleTransaction] {
467+
public query func saleTransactions() : async [SaleTypes.SaleTransactionV3] {
468468
_Sale.saleTransactions();
469469
};
470470

0 commit comments

Comments
 (0)