Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
68ccbefc
Commit
68ccbefc
authored
Sep 30, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parents
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
.gitignore
.gitignore
+14
-0
ethereum.js
ethereum.js
+0
-0
index.html
index.html
+29
-0
No files found.
.gitignore
0 → 100644
View file @
68ccbefc
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
/tmp
*/**/*un~
*un~
.DS_Store
*/**/.DS_Store
ethereum/ethereum
ethereal/ethereal
ethereum.js
0 → 100644
View file @
68ccbefc
This diff is collapsed.
Click to expand it.
index.html
0 → 100644
View file @
68ccbefc
<
!
doctype
>
<html>
<head>
<script
type=
"text/javascript"
src=
"ethereum.js"
></script>
<script
type=
"text/javascript"
>
function
registerName
()
{
var
name
=
document
.
querySelector
(
"#name"
).
value
;
name
=
eth
.
fromAscii
(
name
);
eth
.
transact
({
to
:
"NameReg"
,
from
:
eth
.
key
,
gas
:
"10000"
,
gasPrice
:
eth
.
gasPrice
,
data
:
[
eth
.
fromAscii
(
"register"
),
name
]}).
then
(
function
(
tx
)
{
document
.
querySelector
(
"#result"
).
innerHTML
=
"Registered name. Please wait for the next block to come through."
;
},
function
(
err
)
{
console
.
log
(
err
);
});
}
</script>
</head>
<body>
<h1>
std::name_reg
</h1>
<input
type=
"text"
id=
"name"
></input>
<input
type=
"submit"
onClick=
"registerName();"
></input>
<div
id=
"result"
></div>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment