예제 #1
0
 public ContractInfo(TestApi.SmartContract sc)
 {
     Address     = Base58Encoding.Encode(sc.Address);
     SourceCode  = ConvUtils.FormatSrc(sc.SourceCode);
     HashState   = sc.HashState;
     ByteCodeLen = sc.ByteCode.Length;
     Deployer    = Base58Encoding.Encode(sc.Deployer);
 }
예제 #2
0
 public ContractInfo(SmartContract sc)
 {
     Address     = sc.Address;
     SourceCode  = ConvUtils.FormatSrc(sc.SourceCode);
     HashState   = sc.HashState;
     Method      = sc.Method;
     Params      = string.Join(", ", sc.Params);
     ByteCodeLen = sc.ByteCode.Length;
 }