Skip to content

Commit

Permalink
feat: Show contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Feb 20, 2023
1 parent 8665ed9 commit 907bca7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'twin.macro'

export const GreeterContractInteractions: FC = () => {
const { api, activeAccount, isConnected, activeSigner } = useInkathon()
const { contract } = useRegisteredContract(ContractIds.greeter)
const { contract, address: contractAddress } = useRegisteredContract(ContractIds.greeter)
const [greeterMessage, setGreeterMessage] = useState<string>()
const [fetchIsLoading, setFetchIsLoading] = useState<boolean>()
const [updateIsLoading, setUpdateIsLoading] = useState<boolean>()
Expand Down Expand Up @@ -111,6 +111,9 @@ export const GreeterContractInteractions: FC = () => {
</form>
</Card>
)}

{/* Contract Address */}
<p tw="text-center font-mono text-xs text-gray-600">{contractAddress}</p>
</div>
</>
)
Expand Down

0 comments on commit 907bca7

Please sign in to comment.