Skip to content

Commit

Permalink
change console.yul log address
Browse files Browse the repository at this point in the history
  • Loading branch information
ColoCarletti committed Nov 27, 2023
1 parent a36c165 commit 75fa7bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etc/system-contracts/contracts/precompiles/Console.yul
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ object "Console" {
// CONSOLE.LOG Caller
// It prints 'val' in the node console and it works using the 'mem'+0x40 memory sector
function console_log(mem, val) -> {
let log_address := 0x000000000000000000636F6e736F6c652e6c6f67
// With zksolc 1.13.17 version, log_address must be 16 bit long
// let log_address := 0x000000000000000000636F6e736F6c652e6c6f67
let log_address := 0x000000000000000000000000000000000000f000
// load the free memory pointer
let freeMemPointer := mload(mem)
// store the function selector of log(uint256) in memory
Expand Down

0 comments on commit 75fa7bb

Please sign in to comment.