Open hzqd opened 2 years ago
In src/api/eth.rs and its impl Eth<T>:
src/api/eth.rs
impl Eth<T>
/// Compile Solidity pub fn compile_solidity(&self, code: String) -> CallFuture<Bytes, T::Out> { let code = helpers::serialize(&code); CallFuture::new(self.transport.execute("eth_compileSolidity", vec![code])) }
The code parameter used in helpers::serialize() in a reference way.
code
helpers::serialize()
Why does the type of the parameter code be String, not &str?
String
&str
Call these methods, I get: Rpc method deprecated error.
Rpc method deprecated
Should it be marked deprecated, or delete it in this project?
deprecated
In
src/api/eth.rs
and itsimpl Eth<T>
:The
code
parameter used inhelpers::serialize()
in a reference way.Why does the type of the parameter
code
beString
, not&str
?