public void can_make_deposit() { DepositContract depositContract = new DepositContract(new AbiEncoder(), Address.Zero); Transaction transaction = depositContract.Deposit(TestItem.AddressA, new byte[42], new byte[32], new byte[96], new byte[32]); transaction.Data.Should().HaveCount(484); }
public void can_make_deposit() { AbiDefinitionParser parser = new AbiDefinitionParser(); AbiDefinition abiDefinition = parser.Parse(File.ReadAllText("contracts/validator_registration.json")); DepositContract depositContract = new DepositContract(abiDefinition, new AbiEncoder(), Address.Zero); Transaction transaction = depositContract.Deposit(TestItem.AddressA, new byte[42], new byte[32], new byte[96], new byte[32]); transaction.Data.Should().HaveCount(484); }