Skip to content

Commit

Permalink
[feat] 🚀 add opBNB support and config stuff (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappsar committed Feb 14, 2024
1 parent 2dd85b2 commit 915a39a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ For more information, refer to: [commitlint](https://commitlint.js.org/#/).

# Links

* BNB & opBNB node provider: [nodereal.io](https://nodereal.io/)
- BNB & opBNB node provider: [nodereal.io](https://nodereal.io/)
7 changes: 6 additions & 1 deletion src/sections/Alpha/AlphaAlbums.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ const AlphaAlbums = ({ albums, clickFromAlbums, setSeasonName }) => {
useEffect(() => {
const ntwk = getCurrentNetwork()
if (ntwk && alphaContract) {
const openSeaUrlGamma = `${ntwk.config.chainOpenSeaBaseUrl}/${alphaContract.address}`
let openSeaUrlGamma = ''
if (ntwk.config.chainOpenSeaBaseUrl === '') {
openSeaUrlGamma = `${ntwk.config.chainNftUrl}`
} else {
openSeaUrlGamma = `${ntwk.config.chainOpenSeaBaseUrl}/${alphaContract.address}`
}
setOpenSeaUrl(openSeaUrlGamma)
}
}, [getCurrentNetwork, alphaContract])
Expand Down
7 changes: 6 additions & 1 deletion src/sections/Gamma/GammaCardInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ const GammaCardInfo = (props) => {
useEffect(() => {
const ntwk = getCurrentNetwork()
if (ntwk) {
const openSeaUrlGamma = `${ntwk.config.chainOpenSeaBaseUrl}/${gammaCardsContract.address}`
let openSeaUrlGamma = ''
if (ntwk.config.chainOpenSeaBaseUrl === '') {
openSeaUrlGamma = `${ntwk.config.chainNftUrl}`
} else {
openSeaUrlGamma = `${ntwk.config.chainOpenSeaBaseUrl}/${gammaCardsContract.address}`
}
setOpenSeaUrl(openSeaUrlGamma)
}
}, [getCurrentNetwork, gammaCardsContract])
Expand Down

0 comments on commit 915a39a

Please sign in to comment.