dfx-sns-demo-mksns is used to create SNSes while a snapshot is created.
It could also be useful to add SNSes to an existing running snapshot.
In that case we'd want to run dfx-sns-demo-mksns from an nns-dapp repo.
Changes
Do not assume ../bin-other (which is created by dfx-sns-demo) exists.
Don't cd into the snsdemo directory.
Call dfx-sns-config-random from path instead of ./bin.
Make sure logo.png is present in the current directory when sns propose is called.
Tested
Creating a snapshot still work.
Tried creating an SNS from nns-dapp repo into an existing snapsho.
Motivation
dfx-sns-demo-mksns
is used to create SNSes while a snapshot is created. It could also be useful to add SNSes to an existing running snapshot. In that case we'd want to rundfx-sns-demo-mksns
from an nns-dapp repo.Changes
../bin-other
(which is created bydfx-sns-demo
) exists.cd
into the snsdemo directory.dfx-sns-config-random
from path instead of./bin
.logo.png
is present in the current directory whensns propose
is called.Tested