thetatoken / theta-eth-rpc-adaptor

An adaptor that translates the Theta RPC APIs to the Ethereum RPC APIs
https://docs.thetatoken.org/
24 stars 11 forks source link

panic: mismatching message name: got trezor.ThetaGetAddress, want trezor.testGetAddress #33

Open chandanoodles opened 2 years ago

chandanoodles commented 2 years ago

this is issue is coming when are trying private net with custom name and trying to run eth rpc services, we have checked in our code custom name is added all over places but still the same error kindly guide us on this please

oroutine 1 [running]: google.golang.org/protobuf/internal/impl.legacyLoadMessageDesc({0xfc92e0?, 0xd8a4a0}, {0xde0d3c, 0x16}) /home/ubuntu/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:136 +0x479 google.golang.org/protobuf/internal/impl.legacyLoadMessageInfo({0xfc92e0?, 0xd8a4a0}, {0xde0d3c, 0x16}) /home/ubuntu/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_message.go:48 +0x90 google.golang.org/protobuf/internal/impl.Export.LegacyMessageTypeOf({}, {0xfc1ea8?, 0x0}, {0xde0d3c, 0x16}) /home/ubuntu/go/pkg/mod/google.golang.org/protobuf@v1.23.0/internal/impl/legacy_export.go:33 +0x9d github.com/golang/protobuf/proto.RegisterType({0xfc1ea8?, 0x0}, {0xde0d3c, 0x16}) /home/ubuntu/go/pkg/mod/github.com/golang/protobuf@v1.4.3/proto/registry.go:186 +0x36 github.com/testtoken/test/wallet/coldwallet/keystore/trezor.init.0() /home/ubuntu/go/bin/test-blockchain/testtoken/test/wallet/coldwallet/keystore/trezor/messages.pb.go:4387 +0x299

muroko commented 1 year ago

The Fix is simple, Disable Trezor Init in .../keystore/trezor/messages.pb.go by commenting out from lines #4363 to #4438