Skip to content

Commit

Permalink
link to devnet version of the sui explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcosulich committed Apr 1, 2023
1 parent 051aacd commit 1348b70
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 19 deletions.
4 changes: 1 addition & 3 deletions components/Burn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Burn = () => {
target: `${ETHOS_EXAMPLE_CONTRACT}::example::mint`
})


const response = await wallet.signAndExecuteTransactionBlock({
transactionBlock,
options: {
Expand All @@ -40,7 +39,6 @@ const Burn = () => {
]
});


const burnResponse = await wallet.signAndExecuteTransactionBlock({
transactionBlock: burnTransaction,
options: {
Expand Down Expand Up @@ -68,7 +66,7 @@ const Burn = () => {
{transactionId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/transactions/${encodeURI(transactionId)}`}
href={`https://explorer.sui.io/transactions/${encodeURI(transactionId)}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/BurnCoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Burn = () => {
{transactionId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/transactions/${encodeURI(transactionId)}`}
href={`https://explorer.sui.io/transactions/${encodeURI(transactionId)}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/Clone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Clone = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/MergeCoins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const MergeCoins = () => {
{mergedCoinId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${mergedCoinId}`}
href={`https://explorer.sui.io/objects/${mergedCoinId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/Mint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Mint = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/MintCoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Mint = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/Modify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Modify = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/Transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Transfer = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion components/Transfer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Transfer2 = () => {
{nftObjectId && (
<SuccessMessage reset={reset}>
<a
href={`https://explorer.sui.io/objects/${nftObjectId}`}
href={`https://explorer.sui.io/objects/${nftObjectId}?network=devnet`}
target="_blank"
rel="noreferrer"
className='underline font-blue-600'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@heroicons/react": "^1.0.6",
"@mysten/sui.js": "^0.30.0",
"ethos-connect": "^0.0.117",
"ethos-connect": "^0.0.118",
"next": "^13.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ const Home: NextPage = () => {

<div className="p-12 flex-1 flex justify-end">
<ethos.components.AddressWidget
excludeButtons={[
ethos.enums.AddressWidgetButtons.WalletExplorer
]}
// excludeButtons={[
// ethos.enums.AddressWidgetButtons.WalletExplorer
// ]}
/>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1310,10 +1310,10 @@ esutils@^2.0.2:
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==

ethos-connect@^0.0.117:
version "0.0.117"
resolved "https://registry.yarnpkg.com/ethos-connect/-/ethos-connect-0.0.117.tgz#4d2477adc63e6fc716627f11b7045e186fb4319e"
integrity sha512-+B/lp1x24lQu2iWLNZLWLuZjx3Bj3IhOEvqbIiL2uY+bJvlTknc2T9qZI4gDpamdS+wTJYAp3BmuZKiJTBaCFw==
ethos-connect@^0.0.118:
version "0.0.118"
resolved "https://registry.yarnpkg.com/ethos-connect/-/ethos-connect-0.0.118.tgz#c26131cf51892046e8e63d651198397346677473"
integrity sha512-jGFJrh+ULFUPsZOZnX1pLTYjbieS2Bk/EQRufOt8cqhxeIn/qYojBgm0kNqzxgN9H7tHkKLbSwnKXAqGeLQRKA==
dependencies:
"@mysten/sui.js" "^0.30.0"
"@mysten/wallet-adapter-all-wallets" "^0.5.0"
Expand Down

0 comments on commit 1348b70

Please sign in to comment.