Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Issue for invokefunction add signature #278

@ProDog

Description

@ProDog

Describe the bug

Now invokefunction and invokescript supports check witness, and add signature when wallet has opened in rpc.
But now add signature is abnormal:
I have opened wallet in rpc and call invokefunction to get tx, the stack in result is true, next I call sendrawtransaction to send the tx to node, then I check the transaction's stack is false.

To Reproduce

  1. Open the wallet in rpc
  2. Call invokefunction and invokescript with witness and get tx
  3. Call sendrawtransaction to send tx

Additional context
Result for invokefunction:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "script": "180c14e3137eddba5f6485cad334a79bdb67c43273171f0c141c0357464b777ecf6b5f3ac3893ace1f8b1621f613c00c087472616e736665720c14bcaf41d684c7d4ad6ee0d99da9707b9d1f0c8e6641627d5b52",
        "state": "HALT",
        "gas_consumed": "9007960",
        "stack": [
            {
                "type": "Boolean",
                "value": true
            }
        ],
        "tx": "001477b7261c0357464b777ecf6b5f3ac3893ace1f8b1621f658738900000000002ef11200000000003d2b20000054180c14e3137eddba5f6485cad334a79bdb67c43273171f0c141c0357464b777ecf6b5f3ac3893ace1f8b1621f613c00c087472616e736665720c14bcaf41d684c7d4ad6ee0d99da9707b9d1f0c8e6641627d5b5201420c407b9d29b7316249f6b6ad6d4b6dfb401407cd4eee0b0ea54afff0c01340398e67b2b20f80f70b0b36104f6d9ea1ab889b3a8109fad1d106d10fb29efb676b4ba5290c210222d8515184c7d62ffa99b829aeb4938c4704ecb0dd7e340e842e9df1218263430b4195440d78"
    }
}

Result for sendrawtransaction:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "hash": "0xfb5e74fb8748409bf5678e3d8d4819954d6273acbe469e17e41fdd1f651de7b4"
    }
}

Get the transaction's notify:

{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "txid": "0xfb5e74fb8748409bf5678e3d8d4819954d6273acbe469e17e41fdd1f651de7b4",
        "trigger": "Application",
        "vmstate": "HALT",
        "gas_consumed": "9007960",
        "stack": [
            {
                "type": "Boolean",
                "value": false
            }
        ],
        "notifications": []
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions