Skip to content

Commit 28bf748

Browse files
committed
use metadata for water level
1 parent 56e3959 commit 28bf748

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: waterPlants.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ async function main() {
5959
await discordUser?.send(`CryptOrchid #${token} is dead - please compost it so a new bulb can be planted.`)
6060
continue;
6161
}
62-
63-
const waterLevel = await CryptOrchidsContract.waterLevel(token - 1);
64-
const { 1: plantedAt } = await CryptOrchidsContract.getTokenMetadata(token);
62+
const { 1: plantedAt, 2: waterLevel } = await CryptOrchidsContract.getTokenMetadata(token);
6563

6664
const orchid = {
6765
token,

0 commit comments

Comments
 (0)