Home > tupelo-wasm-sdk > Community > setDefault
setDefault allows you to set a community you control so that when code calls Community.getDefault() it returns this community. This is useful in situations like local testing, where your test harness can point the code at a local community.
Signature:
function setDefault(community: Community): void;
Parameter | Type | Description |
---|---|---|
community | Community |
the to set as default |
Returns:
void