Skip to content

Commit

Permalink
Added additional debug.log
Browse files Browse the repository at this point in the history
  • Loading branch information
BellringerQuinn committed Sep 7, 2023
1 parent eb524e5 commit 867ecab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/SequenceSDK/Ethereum/Contract/ContractDeployer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public static string CalculateContractAddress(BigInteger nonce, string senderAdd
byte[] encoded = RLP.RLP.Encode(toEncode);
byte[] hashed = SequenceCoder.KeccakHash(encoded);
string hashedString = SequenceCoder.ByteArrayToHexString(hashed).EnsureHexPrefix();
return hashedString.Substring(hashedString.Length - 40, 40).EnsureHexPrefix();
string address = hashedString.Substring(hashedString.Length - 40, 40).EnsureHexPrefix();
Debug.Log($"Deployer {senderAddress}, nonce {nonce} - deployed to {address}");
return address;
}
}

Expand Down

0 comments on commit 867ecab

Please sign in to comment.