Skip to content

Commit

Permalink
upgrade to testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhe8x committed May 6, 2024
1 parent 05975a6 commit 686fa9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions publish/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@
"lastUpdate": "Fri, 09 Feb 2024 05:52:10 GMT"
},
"RewardsStaking": {
"innerAddress": "0x5d8edA19e7ff2f643A9824f1C51428B274935FcB",
"innerAddress": "0x04Cd739fE7E1a684f3c97F1EE09894c66F51a104",
"address": "0xB64D73B96358855075576D66746D2a88e043CC1E",
"bytecodeHash": "3860357946ad2b98483b64d3c3336fda91ecf0bd14d2d13e5b4f70b86da85afc",
"lastUpdate": "Wed, 01 May 2024 04:37:20 GMT"
"bytecodeHash": "973d6f56de547f460b966b06a0189163146471417c3d8d25e47217315fd78b26",
"lastUpdate": "Mon, 06 May 2024 21:47:28 GMT"
},
"RewardsHelper": {
"innerAddress": "0xa7eE3bFD854bd609D1485FE845d996EEDE87aF7B",
Expand Down
9 changes: 8 additions & 1 deletion test/fixtureLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface IndexerControllerInput {
}

export interface ProjectInput {
id: string;
account: string;
metadata: object;
projectType: number;
Expand Down Expand Up @@ -150,7 +151,7 @@ export const loaders = {
}
},
Project: async function (
{ account, deployments, metadata, projectType }: ProjectInput,
{ account, deployments, metadata, projectType, id }: ProjectInput,
{ accounts, ipfs, sdk, rootAccount }: Context
) {
console.log(`Project Start for ${metadata['name']}`);
Expand All @@ -164,6 +165,12 @@ export const loaders = {
const { cid: deploymentCid } = await ipfs.add(firstDeploy.deployment, { pin: true });
deploymentId = deploymentCid.toString();
}
// update metadata
if (id) {
const tx = await sdk.projectRegistry.connect(author).updateProjectMetadata(id, metadataCid.toString());
await tx.wait();
return;
}
const tx = await sdk.projectRegistry
.connect(author)
.createProject(
Expand Down

0 comments on commit 686fa9c

Please sign in to comment.