Skip to content

Instantly share code, notes, and snippets.

@farukterzioglu
Last active September 4, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farukterzioglu/4e134177c8dfed910017d82611dadb48 to your computer and use it in GitHub Desktop.
Save farukterzioglu/4e134177c8dfed910017d82611dadb48 to your computer and use it in GitHub Desktop.
Erc20-4
[Test]
public async Task DeployContract()
{
var deploymentMessage = new TokenDeployment { TotalSupply = 10 };
var deploymentHandler = _web3.Eth.GetContractDeploymentHandler<TokenDeployment>();
var transactionReceipt = await deploymentHandler.SendRequestAndWaitForReceiptAsync(deploymentMessage);
_contractAddress = transactionReceipt.ContractAddress;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment