src/Stratis.FederatedPeg.IntegrationTests/Utils/FederatedPegTestExtensions.cs
/// <summary>
/// Note this is only going to work on smart contract enabled (aka sidechain) nodes
/// </summary>
Note this is only going to work on smart contract enabled (aka sidechain) nodes
Note this is only going to work on smart contract enabled ( aka sidechain ) nodes
public static byte[] QueryContractCode(this CoreNode node, string address, Network network)
        {
            IStateRepositoryRoot stateRoot = node.FullNode.NodeService<IStateRepositoryRoot>();
            return stateRoot.GetCode(address.ToUint160(network));
        }
public static byte [ ] QueryContractCode ( this CoreNode node , string address , Network network ) { IStateRepositoryRoot stateRoot = node . FullNode . NodeService < IStateRepositoryRoot > ( ) ; return stateRoot . GetCode ( address . ToUint160 ( network ) ) ; }
Note this is only going to work on smart contract enabled (aka sidechain) nodes
Note this is only going to work on smart contract enabled ( aka sidechain ) nodes
CoreNode
this
address
string
network
Network