Closed ThreeAndTwo closed 10 months ago
@ThreeAndTwo it looks like the the signature is Option
here is the example for OptionBytes that you can use as base to create Option
@ThreeAndTwo it looks like the the signature is Option instead of Signature. You would need to create a custom type for Option for it work.
here is the example for OptionBytes that you can use as base to create Option. You can also add that type to this lib through a PR if you would like. https://github.com/centrifuge/go-substrate-rpc-client/blob/master/types/option_bytes.go#L22
However, option is private. I can't use it from outside. Any tips, please?
@dprydehawking have you solved this issue? how to submit ext
We also added a generic option some time ago - https://github.com/centrifuge/go-substrate-rpc-client/blob/master/types/generic.go#L5
Going to close this for now, please let us know if you still need help.
I hope to participate in crowdloan through call gsrpc on v13, and then there are the following questions.
Verification Error: Runtime error: Execution failed: ApiError(FailedToConvertParameter { function: "validate_transaction", parameter: "tx", error: Error { cause: Some(Error { cause: Some(Error { cause: None, desc: "unexpected first byte decoding Option" }), desc: "Could not decode
Call::contribute.2" }), desc: "Could not decode
Call::Crowdloan.0" } })
the code as belowthanks for any help