Skip to content

Commit

Permalink
remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed May 24, 2024
1 parent 1ae933f commit eb1652c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/app-ofa-private/ofa-private.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import "suave-std/Context.sol";

library DagStore {
function get(bytes32 id) internal returns (bytes memory) {
bytes memory body = abi.encodePacked(
'{"jsonrpc":"2.0","method":"batches.Pull","params":["', string(abi.encodePacked(id)), '"],"id":1}'
);
bytes memory body = abi.encodePacked('{"jsonrpc":"2.0","method":"batches.Pull","params":["', id, '"],"id":1}');
Suave.HttpRequest memory request = Suave.HttpRequest({
url: "http://localhost:8000",
method: "GET",
Expand Down

0 comments on commit eb1652c

Please sign in to comment.