Skip to content

phala-node crash when call by pinkrpc using callindex 0000 #1230

@wbug

Description

@wbug

1, start phala-node by ./phala-node --dev --ws-external --rpc-external
2, call phala-node by pinkrpc using code below :
let rpc_node = "http://localhost:9933/";//9933 is rpc,//9944 is ws
let signer: [u8; 32] = hex!("e5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a");//alice
let signed_tx = create_transaction(
&signer,
"khala",
//"substrate",
rpc_node,
0x00u8,
0x00u8,
remark,
ExtraParam::default(),
);
let signed_tx = signed_tx.unwrap();
println!("{:?}", hex::encode(signed_tx.clone()));
let tx_id = send_transaction(rpc_node, &signed_tx).unwrap();

3, phala-node crash with error:

Version: 3.0.0-c2558939cbd

0: backtrace::backtrace::trace
1: backtrace::capture::Backtrace::new

Thread 'tokio-runtime-worker' panicked at 'Bad input data provided to validate_transaction: Could not decode RuntimeCall::Assets.0:
Could not decode Call::create::admin:
Could not decode MultiAddress, variant doesn't exist
', standalone/runtime/src/lib.rs:1653

This is a bug. Please report it at:

    https://github.com/Phala-Network/phala-blockchain/issues/new

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