Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

用metamask连接我搭建的私有链 #12

Open
hankcocco opened this issue Nov 1, 2020 · 2 comments
Open

用metamask连接我搭建的私有链 #12

hankcocco opened this issue Nov 1, 2020 · 2 comments

Comments

@hankcocco
Copy link

发送交易,总提示
EthQuery - RPC Error - Error: [ethjs-rpc] rpc error with payload {"id":2225701439498,"jsonrpc":"2.0","params":["0xf86e0485079126a50082520894ef505300f7496a15200f8de123d86b359a644d7c884563918244f4000080823a85a05b6eb35f91560f13abfc3e2dfd4b5abeb0335aa0b2e4637d37fc870d1e997827a013461af53de237f63440938a5091788a86adf06faed12ba356ec2533205726ef"],"method":"eth_sendRawTransaction"} [object Object]
我用web3.js发送交易没问题
求助

@hankcocco
Copy link
Author

发送交易,总提示
EthQuery - RPC Error - Error: [ethjs-rpc] rpc error with payload {"id":2225701439498,"jsonrpc":"2.0","params":["0xf86e0485079126a50082520894ef505300f7496a15200f8de123d86b359a644d7c884563918244f4000080823a85a05b6eb35f91560f13abfc3e2dfd4b5abeb0335aa0b2e4637d37fc870d1e997827a013461af53de237f63440938a5091788a86adf06faed12ba356ec2533205726ef"],"method":"eth_sendRawTransaction"} [object Object]
我用web3.js发送交易没问题
求助

排查后发现是rlp: input string too short for common.Address, decoding into (types.Transaction)(types.txdata).Recipient
sendRawTransaction 计算出来的参数长度错误
这是不是dpos算法改变后的固有缺陷,导致无法使用metamask?

@git-hulk
Copy link
Contributor

git-hulk commented Nov 1, 2020

这个版本修改了 transaction 字段,所以原生的 metamask 校验无法通过,web3.js 已经同步修改,所以没问题

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

No branches or pull requests

2 participants