tupelo-wasm-sdk

Home > tupelo-wasm-sdk > Community > setDefault

Community.setDefault() function

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;

Parameters

Parameter Type Description
community Community the to set as default

Returns:

void