2022-03-31 22:16:43 +02:00
|
|
|
@page "/step4"
|
|
|
|
@inherits Step4Component
|
|
|
|
|
2022-04-04 01:38:53 +02:00
|
|
|
@if (TransactionHash == null)
|
|
|
|
{
|
2022-04-04 01:50:38 +02:00
|
|
|
<Space Align="center" Direction="DirectionVHType.Horizontal" Class="drk-vertical-space-center">
|
|
|
|
<SpaceItem Class="drk-full-height">
|
|
|
|
<Space Align="center" Direction="DirectionVHType.Vertical" Class="drk-vertical-space-center" Style="align-items: center !important;">
|
|
|
|
<SpaceItem>
|
|
|
|
<Spin size="large" />
|
|
|
|
</SpaceItem>
|
|
|
|
<SpaceItem>
|
|
|
|
<Title Level="3">MetaMask will show a transaction signing pop-up. Please approve.</Title>
|
|
|
|
</SpaceItem>
|
|
|
|
</Space>
|
|
|
|
</SpaceItem>
|
|
|
|
</Space>
|
2022-04-04 01:38:53 +02:00
|
|
|
}
|
|
|
|
else if (TransactionHash.Value.IsSuccess)
|
2022-03-31 22:16:43 +02:00
|
|
|
{
|
|
|
|
<Result Status="success"
|
2022-04-04 01:38:53 +02:00
|
|
|
Title="Transaction was successfully created!"
|
2022-04-04 01:50:38 +02:00
|
|
|
SubTitle="@($"Transaction: {TransactionHash.Value.Value}. Please wait for 1-5 minutes till transaction is completed.")">
|
2022-03-31 22:16:43 +02:00
|
|
|
<Extra>
|
2022-04-04 01:38:53 +02:00
|
|
|
<Button Type="primary" OnClick="@Reset">Start new mint</Button>
|
2022-03-31 22:16:43 +02:00
|
|
|
</Extra>
|
|
|
|
</Result>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-04-04 01:38:53 +02:00
|
|
|
<Result Status="error"
|
|
|
|
Title="Failed to create transaction"
|
|
|
|
SubTitle="@("Please ensure that you approve created transactions in Metamask")">
|
|
|
|
<Extra>
|
|
|
|
<Button Type="primary" OnClick="@Retry">Try again</Button>
|
|
|
|
</Extra>
|
|
|
|
</Result>
|
2022-03-31 22:16:43 +02:00
|
|
|
}
|