Skip to content

[Erro create transaction with multi singature] #95

Description

@Mehrdadgame

Describe the bug
when add more than one signature in transaction don't open Phanton and have error : ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

#Code

       var blockHash = await Web3.Instance.Wallet.ActiveRpcClient.GetRecentBlockHashAsync();
        Debug.Log($"{blockHash.Result.Value.Blockhash}");

        Account mintAccount = Web3.Instance.Wallet.Account;
        Debug.Log($"MintAccount: {mintAccount}");
        Account ownerAccount = new Account("", "9nQUWBRcxLH8d3UDD2e9vaRJcdGgR7rdZXGugZ9ES7FV");
        Debug.Log($"OwnerAccount: {ownerAccount}");
        Account initialAccount = new Account("", "87L945pDtH7LDP2fFugpDkQu8YdN2xXRLi5GxdQEnfqT");
        Debug.Log($"InitialAccount: {initialAccount}");

        var txBuilder = new TransactionBuilder()
            .SetRecentBlockHash(blockHash.Result.Value.Blockhash)
            .SetFeePayer(mintAccount)
            .AddInstruction(MemoProgram.NewMemo(mintAccount.PublicKey, "Hello Mehrdad :)"))
            .Build(new List<Account>() {mintAccount, ownerAccount, initialAccount});

        var sign = await Web3.Instance.Wallet.SignTransaction(Transaction.Deserialize(txBuilder));

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS:[android]
  • Browser [e.g. chrome, safari]
  • Version Solana [ 0.1]

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions