Skip to content

Commit

Permalink
Solidity compiler file output read as text.
Browse files Browse the repository at this point in the history
  • Loading branch information
allisterb committed Mar 17, 2024
1 parent 104995b commit 0d5bb7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Stratis.VS.StratisEVM/SolidityCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public static async Task CompileFileAsync(string file)
else
{
var binfile = s.Single();
var b = File.ReadAllBytes(binfile);
var b = File.ReadAllText(binfile);
File.Delete(binfile);
VSUtil.LogInfo("Solidity Compiler", "======= " + file + "======= " +"\nBinary: \n" + BitConverter.ToString(b).Replace("-", ""));
VSUtil.LogInfo("Solidity Compiler", "======= " + file + "======= " +"\nBinary: \n" + b);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/solidity/test2/BasicContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract BasicContract {
// console.log("Unlock time is %o and block timestamp is %o", unlockTime, block.timestamp);
emit BasicEvent(funcArg);

uint memory foo;
//uint memory foo;
}


Expand Down

0 comments on commit 0d5bb7e

Please sign in to comment.