fix: prepend 0x to eth_getCode responses (#125)
This commit is contained in:
parent
7e3fe40613
commit
e132706f0b
|
@ -131,7 +131,7 @@ impl EthRpcServer for RpcInner {
|
|||
let node = self.node.read().await;
|
||||
let code = convert_err(node.get_code(&address, block).await)?;
|
||||
|
||||
Ok(hex::encode(code))
|
||||
Ok(format!("0x{:}", hex::encode(code)))
|
||||
}
|
||||
|
||||
async fn call(&self, opts: CallOpts, block: BlockTag) -> Result<String, Error> {
|
||||
|
|
Loading…
Reference in New Issue