|
|
@ -147,7 +147,7 @@ export function AddressPage() { |
|
|
|
// contract defined and contract address same as id
|
|
|
|
// contract defined and contract address same as id
|
|
|
|
// note: when we toggle there is scenarios where the id are not the same
|
|
|
|
// note: when we toggle there is scenarios where the id are not the same
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
if (!!contracts && contracts?.address === id && !!contractShardId) { |
|
|
|
if (!!contracts && contracts?.address === id && contractShardId !== null) { |
|
|
|
loadSourceCode(id, contractShardId) |
|
|
|
loadSourceCode(id, contractShardId) |
|
|
|
.then((res) => setSourceCode(res)) |
|
|
|
.then((res) => setSourceCode(res)) |
|
|
|
.catch((except) => { |
|
|
|
.catch((except) => { |
|
|
|