-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes FE-78
- Loading branch information
Showing
14 changed files
with
173 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'fuels-wallet': patch | ||
--- | ||
|
||
Add an error message for a failed simulated tx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { useAccount, useWallet } from '@fuel-wallet/react'; | ||
|
||
import { panicTx, revertTx } from '../contract_interactions'; | ||
|
||
export const RevertCard = () => { | ||
const { account } = useAccount(); | ||
const { wallet } = useWallet(account); | ||
|
||
return ( | ||
<div> | ||
<p>Panic TX</p> | ||
<div aria-label="Panic asset card"> | ||
<button | ||
onClick={async () => { | ||
if (wallet) { | ||
await panicTx({ | ||
wallet, | ||
}); | ||
} | ||
}} | ||
> | ||
Panic | ||
</button> | ||
</div> | ||
<p>Revert TX</p> | ||
<div aria-label="Revert asset card"> | ||
<button | ||
onClick={async () => { | ||
if (wallet) { | ||
await revertTx({ | ||
wallet, | ||
}); | ||
} | ||
}} | ||
> | ||
Revert | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ExternalContract": "0x2b8b998aabd0ba2792af458022df56e156f78a7e823ee96169882cfe8fd457c6", | ||
"MainContract": "0x210fe0ed3837c987967ed4fd408fb915eb8b1e6da7f6a018f81f88d1dcd49f0c" | ||
"ExternalContract": "0x7c1936543c56af5f490bc830e96c6151b1e464c56146043b6623e241f5a09f83", | ||
"MainContract": "0x88397740fbabaf21f01cf66c22bdfdeae134cbc94d4361af4c6df697542ff8c4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/e2e-contract-tests/src/contracts/contracts/CustomAssetAbi.hex.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters