Function fvm_shared::address::set_current_network

source ·
pub fn set_current_network(network: Network)
Expand description

Sets the default network.

The network is used to differentiate between different filecoin networks in text but isn’t actually encoded in the binary representation of addresses. Changing the current network will:

  1. Change the prefix used when formatting an address as a string.
  2. Change the prefix accepted when parsing an address.