update to latest CASPER chain version

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-13 19:44:24 +03:00
parent 613be49e5b
commit af7ca0da51
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
7 changed files with 32 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ghost-lite",
"version": "0.0.19",
"version": "0.1.0",
"description": "Web application for Ghost and Casper chain.",
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
"maintainers": [

View File

@ -17,8 +17,8 @@ import {
const chainData = [
{
label: "Casper",
value: "0x07074eb5f47a6f4dd70430674e5174d5414bc055292b90392fb6f0a28c7524d1",
label: "CASPER",
value: "0xa217f4ee58a944470e9633ca5bd6d28a428ed64cd9b6f3e413565f359f89af90",
chainSpec: casperDevelopment,
}
]

View File

@ -131,7 +131,7 @@ export const Sidebar = () => {
>
<FaGithub className="w-8 h-8" />
<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>
</a>

File diff suppressed because one or more lines are too long

View File

@ -132,7 +132,7 @@ export const AddressBook = () => {
aria-label="New Name"
type="text"
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
placeholder="Record Name"
placeholder="Contact Name"
/>
<Input
value={address}
@ -140,7 +140,7 @@ export const AddressBook = () => {
aria-label="New Address"
type="text"
className="w-full sm:text-base text-xs sm:placeholder:text-base placeholder:text-xs"
placeholder="Record Address"
placeholder="Contact Address"
/>
</div>
<Button
@ -150,7 +150,7 @@ export const AddressBook = () => {
onClick={() => addRecord({ name, address })}
>
<CirclePlus className="w-4 h-4 mr-2" />
Add Record
Add Contact
</Button>
{error && (
<div className="text-xs text-destructive">{error}</div>

View File

@ -334,7 +334,10 @@ export const Transactions = () => {
const receiverObject = useMemo(() => {
try {
ss58Decode(receiver)
const [, prefix] = ss58Decode(receiver)
if (prefix !== 1995 && prefix !== 1996) {
throw new Error("bad prefix")
}
return { isValid: true, address: receiver }
} catch (e) {
return { isValid: false, address: receiver }

View File

@ -1 +1 @@
export const DEFAULT_CHAIN_ID = "0x07074eb5f47a6f4dd70430674e5174d5414bc055292b90392fb6f0a28c7524d1"
export const DEFAULT_CHAIN_ID = "0xa217f4ee58a944470e9633ca5bd6d28a428ed64cd9b6f3e413565f359f89af90"