Skip to content

Commit

Permalink
Ensure TX is sent with 0x prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed May 29, 2024
1 parent 7f8e142 commit 3b8069e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ std::string Provider::sendTransaction(const Transaction& signedTx) {
// Create and send a raw transaction returns the hash without checking if it succeeded in getting into the mempool
std::string Provider::sendUncheckedTransaction(const Transaction& signedTx) {
nlohmann::json params = nlohmann::json::array();
params.push_back(signedTx.serializeAsHex());
params.push_back("0x" + signedTx.serializeAsHex());

auto response = makeJsonRpcRequest("eth_sendRawTransaction", params, connectTimeout);
if (response.status_code == 200) {
Expand Down

0 comments on commit 3b8069e

Please sign in to comment.