Skip to content

Commit

Permalink
check use shortstring encode in all v1
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Nov 1, 2024
1 parent 5364cd5 commit 0c52506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/v1/StructWithString.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StarknetDomain, TypedData, typedData, TypedDataRevision } from "starknet";
import { shortString, StarknetDomain, TypedData, typedData, TypedDataRevision } from "starknet";

const types = {
StarknetDomain: [
Expand All @@ -21,7 +21,7 @@ interface StructWithString {
function getDomain(chainId: string): StarknetDomain {
return {
name: "dappName",
version: "1",
version: shortString.encodeShortString("1"),
chainId,
revision: TypedDataRevision.ACTIVE,
};
Expand Down

0 comments on commit 0c52506

Please sign in to comment.