-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added dev folder for compilation the project
- Loading branch information
1 parent
1328573
commit 3238091
Showing
3 changed files
with
36 additions
and
2 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,13 @@ | ||
<!-- dev/index.html --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Dev Test</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="./index.tsx"></script> | ||
</body> | ||
</html> |
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,22 @@ | ||
// dev/index.tsx | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import { ContractView } from "../src/component/contract-view"; | ||
import AElf from "aelf-sdk"; | ||
|
||
const App = () => { | ||
const aelfWallet = AElf.wallet.getWalletByPrivateKey("395644ebc31ef9e7f266a1cf23023beb66f7a298509f251e819d540a540cb89a"); | ||
|
||
return ( | ||
<main> | ||
<ContractView | ||
wallet={aelfWallet} | ||
address={"2vojXfVXL3iaKTwJue4sEa5fpbhcdrscDHw81SnCtCdWLu4JFs"} | ||
rpcUrl="https://tdvw-test-node.aelf.io" | ||
contractName={"contractViewerAddress"} | ||
/> | ||
</main> | ||
); | ||
}; | ||
|
||
ReactDOM.render(<App />, document.getElementById("root")); |
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