toNonceInformation method

NonceInformation toNonceInformation(
  1. Pubkey nonceAccount
)

Creates a NonceInformation instance from the nonce account data.

Implementation

NonceInformation toNonceInformation(final Pubkey nonceAccount) =>
    NonceInformation(
      nonce: nonce,
      nonceInstruction: SystemProgram.nonceAdvance(
        noncePubkey: nonceAccount,
        authorizedPubkey: authorizedPubkey,
      ),
    );