Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
9d38754c
Commit
9d38754c
authored
Mar 03, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(atst): Default chainId to undefined instead of 10
parent
0e83a2f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
prepareWriteAttestation.ts
packages/atst/src/lib/prepareWriteAttestation.ts
+1
-1
prepareWriteAttestations.ts
packages/atst/src/lib/prepareWriteAttestations.ts
+2
-4
AttestationReadParams.ts
packages/atst/src/types/AttestationReadParams.ts
+1
-0
No files found.
packages/atst/src/lib/prepareWriteAttestation.ts
View file @
9d38754c
...
...
@@ -10,7 +10,7 @@ export const prepareWriteAttestation = async (
about
:
Address
,
key
:
string
,
value
:
string
|
WagmiBytes
|
number
|
boolean
,
chainId
=
10
,
chainId
:
number
|
undefined
=
undefined
,
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
)
=>
{
let
formattedKey
:
WagmiBytes
...
...
packages/atst/src/lib/prepareWriteAttestations.ts
View file @
9d38754c
...
...
@@ -14,7 +14,7 @@ type Attestation = {
export
const
prepareWriteAttestations
=
async
(
attestations
:
Attestation
[],
chainId
=
10
,
chainId
:
number
|
undefined
=
undefined
,
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
)
=>
{
const
formattedAttestations
=
attestations
.
map
((
attestation
)
=>
{
...
...
@@ -27,9 +27,7 @@ export const prepareWriteAttestations = async (
`key is longer than 32 bytes:
${
attestation
.
key
}
. Try using a shorter key or using 'encodeRawKey' to encode the key into 32 bytes first`
)
}
const
formattedValue
=
createValue
(
attestation
.
value
)
as
WagmiBytes
const
formattedValue
=
createValue
(
attestation
.
value
)
as
WagmiBytes
return
{
about
:
attestation
.
about
,
key
:
formattedKey
,
...
...
packages/atst/src/types/AttestationReadParams.ts
View file @
9d38754c
...
...
@@ -11,4 +11,5 @@ export interface AttestationReadParams {
key
:
string
dataType
?:
DataTypeOption
contractAddress
?:
Address
chainId
?:
number
}
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