示例#1
0
 private void InitialiseInnerServices()
 {
     Eth = new Eth(Client);
     Shh = new Shh(Client);
     Net = new Net(Client);
     Personal = new Personal(Client);
     Miner = new Miner(Client);
     DebugGeth = new DebugGeth(Client);
     Admin = new Admin(Client);
     Convert = new UnitConversion();
     sha3Keccack = new Sha3Keccack();
     OfflineTransactionSigning = new TransactionSigning();
     addressUtil = new AddressUtil();
 }
 public virtual void ShouldCheckIsCheckSumAddress()
 {
     var address1 = "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed";
     var address1F = "0x5aaeb6053F3E94C9b9A09f33669435E7Ef1BeAed";
     var address2 = "0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359";
     var address2F = "0xfb6916095ca1df60bB79Ce92cE3Ea74c37c5d359";
     var address3 = "0xdbF03B407c01E7cD3CBea99509d93f8DDDC8C6FB";
     var address4 = "0xD1220A0cf47c7B9Be7A2E6BA89F429762e7b9aDb";
     var addressUtil = new AddressUtil();
     Assert.True(addressUtil.IsChecksumAddress(address1));
     Assert.False(addressUtil.IsChecksumAddress(address1F));
     Assert.True(addressUtil.IsChecksumAddress(address2));
     Assert.False(addressUtil.IsChecksumAddress(address2F));
     Assert.True(addressUtil.IsChecksumAddress(address3));
     Assert.True(addressUtil.IsChecksumAddress(address4));
    
 }