Skip to content

Commit

Permalink
space & deploy scripts: get points symbol as constructor arg
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAcosta committed Oct 15, 2024
1 parent 0817a34 commit 136eac2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions script/deploy/DeployPoC.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract DeployPoC is Script {
args.spaceName,
args.spaceDescription,
args.spaceImageUrl,
args.pointsName
args.pointsSymbol
);

vm.stopBroadcast();
Expand Down Expand Up @@ -64,7 +64,8 @@ contract DeployPoC is Script {
console.log(' "followed": "%s",', args.stampFollowed);
console.log(' "spaceName": "%s",', args.spaceName);
console.log(' "spaceDescription": "%s",', args.spaceDescription);
console.log(' "spaceImageUrl": "%s"', args.spaceImageUrl);
console.log(' "spaceImageUrl": "%s",', args.spaceImageUrl);
console.log(' "pointsSymbol": "%s"', args.pointsSymbol);
console.log(" }");
console.log(" }");
console.log(" },");
Expand Down
4 changes: 2 additions & 2 deletions script/deploy/DeployPoCArgs.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployPoCArgs is Script {
string spaceName;
string spaceDescription;
string spaceImageUrl;
string pointsName;
string pointsSymbol;
}

function getArgs() public view returns (DeploymentArgs memory) {
Expand All @@ -41,7 +41,7 @@ contract DeployPoCArgs is Script {
spaceName: "Base",
spaceDescription: "The (un)official community space for Base Onchain community",
spaceImageUrl: "https://raw.githubusercontent.com/base-org/brand-kit/refs/heads/main/logo/in-product/Base_Network_Logo.png",
pointsName: "BASE"
pointsSymbol: "BASE"
});

return args;
Expand Down
6 changes: 4 additions & 2 deletions src/plasa/Plasa.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ contract Plasa is Ownable {
string memory followed,
string memory spaceName,
string memory spaceDescription,
string memory spaceImageUrl
string memory spaceImageUrl,
string memory pointsSymbol
) external returns (address) {
ISpace newSpace = ISpace(
new Space(
Expand All @@ -62,7 +63,8 @@ contract Plasa is Ownable {
followed,
spaceName,
spaceDescription,
spaceImageUrl
spaceImageUrl,
pointsSymbol
)
);
spaces.push(newSpace);
Expand Down

0 comments on commit 136eac2

Please sign in to comment.