public async Task ShouldDeployContractToMordenAsync() { var workService = new WorkService(new Web3(), "0xdF597079182391EaFB478412F2352CfAfc7E29A3"); await workService.SetAttributeAsync(Account, WorkSchema.name, "Hello", true, DefaultGas); await workService.SetAttributeAsync(Account, WorkSchema.audio, "MP3HASH", true, DefaultGas); await workService.SetAttributeAsync(Account, WorkSchema.image, "QmZTEAwF3f1oidQtZNKqM2VVK79xDdMNDnSDjC632AzZnU", true, DefaultGas); }
public async Task ShouldUpdateWorkFileInContract(string address, string fileHash) { var web3 = await CreateNewWeb3Instance(); var workService = new WorkService(web3, address); await workService.SetAttributeAsync(Account, WorkSchema.audio, fileHash, true, DefaultGas); }
public async Task ShouldChangeDataInContract() { var web3 = await CreateNewWeb3Instance(); var workService = new WorkService(web3, "0xdF597079182391EaFB478412F2352CfAfc7E29A3"); await workService.SetAttributeAsync(Account, WorkSchema.image, "QmY6CYcPbpmvz2R2v5Jfv5DLgTjyyN6HmWPKsBTnG2Ajv7", true, DefaultGas); }