solana-foundation / developer-content

Collection of Developer content for exploring, learning, and building in the Solana ecosystem.

Home Page:https://solana.com/developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Documentation

nilz3ro opened this issue · comments

commented

The docs here walk through an offline signing scenario with two signers, using a nonce account. There is an issue in the section where the author signs the transaction with the second keypair called sender.json in the scenario. The --fee-payer flag is missing, and I noticed that the co-signer.json's address and signature are missing in the transaction, and that the sender.json's address actually paid the fee.

Sender's address H8BHbivzT4DtJxL4J4X53CgnqzTUAEJfptSaEHsCvg51
Co-sender's address HDx43xY4piU3xMxNyRQkj89cqiF15hz5FVW9ergTtZ7S

Result from running
solana confirm -v anQ8VtQgeSMoKTnQCubTenq1J7WKxAa1dbFMDLsbDWgV6GGL135G1Ydv4QTNd6GptP3TxDQ2ZWi3Y5qnEtjM7yg

Commitment: confirmed

Transaction executed in slot 223952780:
  Block Time: 2023-06-19T20:34:29+00:00
  Version: legacy
  Recent Blockhash: HNUi6La2QpGJdfcAR6yFFmdgYoCvFZREkve2haMBxXVz
  Signature 0: anQ8VtQgeSMoKTnQCubTenq1J7WKxAa1dbFMDLsbDWgV6GGL135G1Ydv4QTNd6GptP3TxDQ2ZWi3Y5qnEtjM7yg
  Signature 1: 59NDuW9ekarYGrs32Gadi7acejtMPrbTVeovmKyGGwHyk1oQyruWbJ6zonihwwPoYZ1ULHHRxXF8NrcZbcw5bwBR
  Account 0: srw- H8BHbivzT4DtJxL4J4X53CgnqzTUAEJfptSaEHsCvg51 (fee payer)
  Account 1: sr-- 5CZKcm6PakaRWGK8NogzXvj8CjA71uSofKLohoNi4Wom
  Account 2: -rw- 8DedqKHx9ogFajbHtRnTM3pPr3MRyVKDtepEpUiaDXX
  Account 3: -rw- D3RAQxwQBhMLum2WK7eCn2MpRWgeLtDW7fqXTcqtx9uC
  Account 4: -r-x 11111111111111111111111111111111
  Account 5: -r-- SysvarRecentB1ockHashes11111111111111111111
  Instruction 0
    Program:   11111111111111111111111111111111 (4)
    Account 0: 8DedqKHx9ogFajbHtRnTM3pPr3MRyVKDtepEpUiaDXX (2)
    Account 1: SysvarRecentB1ockHashes11111111111111111111 (5)
    Account 2: 5CZKcm6PakaRWGK8NogzXvj8CjA71uSofKLohoNi4Wom (1)
    AdvanceNonceAccount
  Instruction 1
    Program:   11111111111111111111111111111111 (4)
    Account 0: H8BHbivzT4DtJxL4J4X53CgnqzTUAEJfptSaEHsCvg51 (0)
    Account 1: D3RAQxwQBhMLum2WK7eCn2MpRWgeLtDW7fqXTcqtx9uC (3)
    Transfer { lamports: 100000000 }
  Status: Ok
    Fee: _0.00001
    Account 0 balance: _0.399995 -> _0.299985
    Account 1 balance: _1.9984551
    Account 2 balance: _0.0014999
    Account 3 balance: _0.6 -> _0.7
    Account 4 balance: _0.000000001
    Account 5 balance: _0.04270656
  Compute Units Consumed: 0
  Log Messages:
    Program 11111111111111111111111111111111 invoke [1]
    Program 11111111111111111111111111111111 success
    Program 11111111111111111111111111111111 invoke [1]
    Program 11111111111111111111111111111111 success

Finalized