Skip to content

Commit bf5bd8d

Browse files
committed
Successful automatic update
1 parent 8dcf9ff commit bf5bd8d

File tree

2 files changed

+193
-260
lines changed

2 files changed

+193
-260
lines changed

ProjectPlugins/CodexContractsPlugin/ContractsContainerInfoExtractor.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ private string FetchMarketplaceAbi()
5656
var abi = artifact["abi"];
5757
var byteCode = artifact["bytecode"];
5858
var abiResult = abi!.ToString(Formatting.None);
59-
var byteCodeResult = byteCode!.ToString(Formatting.None);
59+
var byteCodeResult = byteCode!.ToString(Formatting.None).ToLowerInvariant().Replace("\"", "");
60+
var expectedByteCode = MarketplaceDeploymentBase.BYTECODE.ToLowerInvariant();
6061

61-
if (byteCodeResult
62-
.ToLowerInvariant()
63-
.Replace("\"", "") != MarketplaceDeploymentBase.BYTECODE.ToLowerInvariant())
62+
if (byteCodeResult != expectedByteCode)
6463
{
6564
//throw new Exception("BYTECODE in CodexContractsPlugin does not match BYTECODE deployed by container. Update Marketplace.cs generated code?");
6665

0 commit comments

Comments
 (0)