As per suggestion, addition of file picker for abi and bytecode
This is what is required (more or less) @Dave-Whiffin
In the AbiCodeGenerateBase model put
public ElementReference ABIFileUpload { get; set; }
public ElementReference ByteCodeFileUpload { get; set; }
public async Task ReadFileABI()
{
var files = await FileReaderService.CreateReference(ABIFileUpload).EnumerateFilesAsync();
var stream = await files.First().CreateMemoryStreamAsync();
var streamReader = new System.IO.StreamReader(stream);
Model.Abi = streamReader.ReadToEnd();
}
public async Task ReadFileByteCode()
{
var files = await FileReaderService.CreateReference(ByteCodeFileUpload).EnumerateFilesAsync();
var stream = await files.First().CreateMemoryStreamAsync();
var streamReader = new System.IO.StreamReader(stream);
Model.ByteCode = streamReader.ReadToEnd();
}
As per suggestion, addition of file picker for abi and bytecode
This is what is required (more or less) @Dave-Whiffin In the AbiCodeGenerateBase model put
On the Razor file pug