update to latest CASPER chain version
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
613be49e5b
commit
af7ca0da51
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-lite",
|
"name": "ghost-lite",
|
||||||
"version": "0.0.19",
|
"version": "0.1.0",
|
||||||
"description": "Web application for Ghost and Casper chain.",
|
"description": "Web application for Ghost and Casper chain.",
|
||||||
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
|
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
|
@ -17,8 +17,8 @@ import {
|
|||||||
|
|
||||||
const chainData = [
|
const chainData = [
|
||||||
{
|
{
|
||||||
label: "Casper",
|
label: "CASPER",
|
||||||
value: "0x07074eb5f47a6f4dd70430674e5174d5414bc055292b90392fb6f0a28c7524d1",
|
value: "0xa217f4ee58a944470e9633ca5bd6d28a428ed64cd9b6f3e413565f359f89af90",
|
||||||
chainSpec: casperDevelopment,
|
chainSpec: casperDevelopment,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -131,7 +131,7 @@ export const Sidebar = () => {
|
|||||||
>
|
>
|
||||||
<FaGithub className="w-8 h-8" />
|
<FaGithub className="w-8 h-8" />
|
||||||
<div className="block float-left text-xs text-left">
|
<div className="block float-left text-xs text-left">
|
||||||
<div className="md:block hidden text-primary">Ghost Lite Git</div>
|
<div className="md:block hidden text-primary">GHOST Lite Git</div>
|
||||||
<div className="text-accent">v {pckg.version}</div>
|
<div className="text-accent">v {pckg.version}</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -132,7 +132,7 @@ export const AddressBook = () => {
|
|||||||
aria-label="New Name"
|
aria-label="New Name"
|
||||||
type="text"
|
type="text"
|
||||||
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
|
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
|
||||||
placeholder="Record Name"
|
placeholder="Contact Name"
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
value={address}
|
value={address}
|
||||||
@ -140,7 +140,7 @@ export const AddressBook = () => {
|
|||||||
aria-label="New Address"
|
aria-label="New Address"
|
||||||
type="text"
|
type="text"
|
||||||
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
|
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
|
||||||
placeholder="Record Address"
|
placeholder="Contact Address"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
@ -150,7 +150,7 @@ export const AddressBook = () => {
|
|||||||
onClick={() => addRecord({ name, address })}
|
onClick={() => addRecord({ name, address })}
|
||||||
>
|
>
|
||||||
<CirclePlus className="w-4 h-4 mr-2" />
|
<CirclePlus className="w-4 h-4 mr-2" />
|
||||||
Add Record
|
Add Contact
|
||||||
</Button>
|
</Button>
|
||||||
{error && (
|
{error && (
|
||||||
<div className="text-xs text-destructive">{error}</div>
|
<div className="text-xs text-destructive">{error}</div>
|
||||||
|
@ -334,7 +334,10 @@ export const Transactions = () => {
|
|||||||
|
|
||||||
const receiverObject = useMemo(() => {
|
const receiverObject = useMemo(() => {
|
||||||
try {
|
try {
|
||||||
ss58Decode(receiver)
|
const [, prefix] = ss58Decode(receiver)
|
||||||
|
if (prefix !== 1995 && prefix !== 1996) {
|
||||||
|
throw new Error("bad prefix")
|
||||||
|
}
|
||||||
return { isValid: true, address: receiver }
|
return { isValid: true, address: receiver }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return { isValid: false, address: receiver }
|
return { isValid: false, address: receiver }
|
||||||
|
@ -1 +1 @@
|
|||||||
export const DEFAULT_CHAIN_ID = "0x07074eb5f47a6f4dd70430674e5174d5414bc055292b90392fb6f0a28c7524d1"
|
export const DEFAULT_CHAIN_ID = "0xa217f4ee58a944470e9633ca5bd6d28a428ed64cd9b6f3e413565f359f89af90"
|
||||||
|
Loading…
Reference in New Issue
Block a user