Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wbug opened this issue Apr 5, 2023 · 1 comment
Open

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

wbug opened this issue Apr 5, 2023 · 1 comment

Comments

@wbug
Copy link

wbug commented Apr 5, 2023

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
@wbug
Copy link
Author

wbug commented Apr 5, 2023

it work well by callindex 0100.
but it should not be crash by wrong callindex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant