iotaledger / iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Apache License 2.0
59 stars 41 forks source link

missing commitment context input for block issuer feature #2138

Closed Thoralf-M closed 8 months ago

Thoralf-M commented 8 months ago

With the cli send rms1qqfz7u5aau3gkhx62kp4a2fct3wt5tmw52pz6qyy4vatm7yl3k52czs7pyn 1000000 fails with missing commitment context input for block issuer feature Account is transition but the required commitment context input isn't added Debug logs

2024-03-05 19:01:33 (UTC) iota_sdk::wallet::operations::transaction::high_level::send DEBUG [TRANSACTION] prepare_send_with_params
2024-03-05 19:01:33 (UTC) iota_sdk::wallet::operations::transaction::send_outputs DEBUG [TRANSACTION] prepare_send_outputs
2024-03-05 19:01:33 (UTC) iota_sdk::wallet::operations::transaction::build_transaction DEBUG [TRANSACTION] build_transaction
2024-03-05 19:01:33 (UTC) iota_sdk::wallet::operations::participation DEBUG [get_voting_output]
2024-03-05 19:01:33 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:8050/api/core/v3/blocks/issuance
2024-03-05 19:01:33 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:8050/api/core/v3/accounts/rms1przldwcvzwtx7ezgykrpct3fuw53njk0eqa4r65znysdzxayuxvqvu9yuwz/congestion
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement DEBUG Fulfilling requirement NativeTokens
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::native_tokens DEBUG Native tokens requirement already fulfilled
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement DEBUG Fulfilling requirement Amount
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::amount DEBUG Fulfilling amount requirement with input 0, output 1000000, input sdrs {} and output sdrs {Ed25519Address(0x122f729def228b5cda55835ea9385c5cba2f6ea2822d0084ab3abdf89f8da8ac): 1000000}
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::amount DEBUG Ordering inputs from low to high amount
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::amount DEBUG Outputs {OutputId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c0000000000", transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, output_index: 0 }: InputSigningData { output: BasicOutput { amount: 1000000, mana: 0, unlock_conditions: UnlockConditions([AddressUnlockCondition(Ed25519Address(0x122f729def228b5cda55835ea9385c5cba2f6ea2822d0084ab3abdf89f8da8ac))]), features: Features([]) }, output_metadata: OutputMetadata { output_id: OutputId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c0000000000", transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, output_index: 0 }, block_id: BlockId { id: "0xa88502204bcc4ec7fa2232455a86e73ff00786fb53a4ac61af8cf56cde23d0b43c000000", slot_index: SlotIndex(60) }, included: OutputInclusionMetadata { slot: SlotIndex(60), transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, commitment_id: None }, spent: None, latest_commitment_id: SlotCommitmentId { id: "0x306a8cef1a52b65fb5996f27e8e3579e63948905bcf11097123d389802481f5a3a000000", slot_index: SlotIndex(58) } }, chain: Some(Bip44 { coin_type: 4219, account: 0, change: 0, address_index: 0 }) }} selected to fulfill the amount requirement
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder DEBUG Selecting input OutputId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c0000000000", transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, output_index: 0 }
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement DEBUG Fulfilling requirement ContextInputs
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement DEBUG Fulfilling requirement Mana
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::mana DEBUG signed_transaction: {
  "type": 1,
  "transaction": {
    "networkId": "16153962416261120768",
    "creationSlot": 63,
    "inputs": [
      {
        "type": 0,
        "transactionId": "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000",
        "transactionOutputIndex": 0
      }
    ],
    "allotments": [
      {
        "accountId": "0xc5f6bb0c13966f644825861c2e29e3a919cacfc83b51ea829920d11ba4e19806",
        "mana": "0"
      }
    ],
    "outputs": [
      {
        "type": 0,
        "amount": "1000000",
        "mana": "0",
        "unlockConditions": [
          {
            "type": 0,
            "address": {
              "type": 0,
              "pubKeyHash": "0x122f729def228b5cda55835ea9385c5cba2f6ea2822d0084ab3abdf89f8da8ac"
            }
          }
        ]
      }
    ]
  },
  "unlocks": [
    {
      "type": 0,
      "signature": {
        "type": 0,
        "publicKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
      }
    }
  ]
}
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::mana DEBUG Allotting at least 356500 mana to account ID 0xc5f6bb0c13966f644825861c2e29e3a919cacfc83b51ea829920d11ba4e19806
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::mana DEBUG 356500 additional mana required to meet minimum allotment
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::mana DEBUG Adding 356500 to allotment debt 0
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement::mana DEBUG Mana requirement selected mana: 22, required mana: 356500
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder DEBUG Selecting input OutputId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c0000000100", transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, output_index: 1 }
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::transition DEBUG Automatic transition of OutputId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c0000000100", transaction_id: TransactionId { id: "0x18e2c52ab24ceb35ca6ae0ced8df7e9307fdedc196365381767d1c5d79c954873c000000", slot_index: SlotIndex(60) }, output_index: 1 }/AccountId(0xc5f6bb0c13966f644825861c2e29e3a919cacfc83b51ea829920d11ba4e19806)
2024-03-05 19:01:33 (UTC) iota_sdk::client::api::block_builder::transaction_builder::requirement DEBUG Fulfilling requirement Mana
2024-03-05 19:01:33 (UTC) wallet::wallet_cli                         ERROR `missing commitment context input for block issuer feature`