@silvana-one/mina-utils 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,8 @@ export async function getAccountNonce(params: {
92
92
  const canUseBlockBerry =
93
93
  blockBerryApiKey !== undefined &&
94
94
  (chain === "mina:devnet" || chain === "mina:mainnet");
95
- if (chain === "zeko:testnet") {
95
+ if (chain === "zeko:testnet" || chain === "mina:testnet") {
96
+ // BlockBerry has no mesa/testnet endpoint, so read the nonce directly from the node.
96
97
  const publicKey = PublicKey.fromBase58(account);
97
98
  await fetchMinaAccount({ publicKey });
98
99
  const nonce = Number(Mina.getAccount(publicKey).nonce.toBigint());