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

tmkms fatal error: parse error: invalid character . #724

Closed
QuocThi opened this issue Apr 9, 2023 · 1 comment
Closed

tmkms fatal error: parse error: invalid character . #724

QuocThi opened this issue Apr 9, 2023 · 1 comment

Comments

@QuocThi
Copy link

QuocThi commented Apr 9, 2023

I followed https://github.com/iqlusioninc/tmkms/blob/v0.12.2/README.txsigner.md#architecture to config to sign transaction but got this error when parsing the tmkms.toml file:

error: tmkms fatal error: parse error: invalid character `.` in type name: `this.is.testString` for key `tx_si
gner.acl` at line 39 column 7

The [[tx_signer]] I used is:

### (Optional) Transaction signer configuration
[[tx_signer]]
chain_id = "test"
schema = "/Users/test/tmkms/.kms_home/test_schema.toml" # See Schema section below
account_address = "test1ptqkekmp9lf4mgw93jsyvy7unugjy3xcp67pwe" # must be in the keyring for this chain
account_number = 526
poll_interval = { blocks = 5 }
source = { protocol = "jsonrpc", uri = "http://localhost:8000/TestRequest" }
rpc = { addr =  "tcp://0.0.0.0:26657" }
acl = { msg_type = ["test.tx.TestRequest"] }
seq_file = "test-sequence.toml"

The '.' character can work fine in normal string like the rpc config above but for the acl config it contained in a string inside the "[]" so that I got this error.
I tried many ways like create subtable but still failed with the same error:

"[tx_signer.acl]"
msg_type = ["test.tx.TestRequest"]

When I try to use nested array of tables:

[[tx_signer.acl]]
msg_type = ["test.tx.TestRequest"]

Then I got the error:

./tmkms start -c tmkms.toml                                                                                            ─╯
error: tmkms fatal error: parse error: invalid type: map, expected a sequence for key `tx_signer.acl` at line 41 column 1

Please help, thanks~

@tony-iqlusion
Copy link
Member

tx-signer was removed in #764.

It only ever supported the legacy Amino transaction format anyway.

@tony-iqlusion tony-iqlusion closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
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

2 participants