Skip to content

Commit

Permalink
fix: use 0x00(...)0DEaD as the dev wallet
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed May 13, 2024
1 parent a7b91f5 commit 8c5528a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/building-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ The value is hard-coded to 88 `0` characters when running the module via `zinnia
#### `Zinnia.walletAddress`

The wallet address where to send rewards. When running inside the Station Desktop, this API will
return the address of Station's built-in wallet.
return the address of the Station's built-in wallet.

The value is hard-coded to a testnet address `t1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za` when
running the module via `zinnia` CLI.
The value is hard-coded to the Ethereum (FEVM) address `0x000000000000000000000000000000000000dEaD`
when running the module via `zinnia` CLI.

#### `Zinnia.activity.info(message)`

Expand Down
3 changes: 1 addition & 2 deletions runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ impl BootstrapOptions {
agent_version,
rng_seed: None,
module_root,
// See https://lotus.filecoin.io/lotus/manage/manage-fil/#public-key-address
wallet_address: String::from("t1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za"),
wallet_address: String::from("0x000000000000000000000000000000000000dEaD"),
// Station ID must look like a public key - 88 hexadecimal characters.
// Let's use all-zeroes value to make it easy to distinguish data reported
// from non-production systems (dev, CI).
Expand Down
2 changes: 1 addition & 1 deletion runtime/tests/js/station_apis_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test("Zinnia.walletAddress", () => {
// Runtime JS tests are executed with the default configuration
// In this test, we assert that we can access the wallet address
// and the value is the default testnet one.
assertStrictEquals(Zinnia.walletAddress, "t1abjxfbp274xpdqcpuaykwkfb43omjotacm2p3za");
assertStrictEquals(Zinnia.walletAddress, "0x000000000000000000000000000000000000dEaD");
});

test("Zinnia.stationId", () => {
Expand Down

0 comments on commit 8c5528a

Please sign in to comment.