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
91403c21
Unverified
Commit
91403c21
authored
Mar 06, 2023
by
mergify[bot]
Committed by
GitHub
Mar 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into clabby/ctb/bytes-slice-memsafety-test
parents
0f6f3dbc
c10214b0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
sixty-days-explain.md
.changeset/sixty-days-explain.md
+5
-0
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.
.changeset/sixty-days-explain.md
0 → 100644
View file @
91403c21
---
'
@eth-optimism/atst'
:
patch
---
Fixed bug with atst not defaulting to currently connected chain
packages/atst/src/lib/prepareWriteAttestation.ts
View file @
91403c21
...
@@ -10,7 +10,7 @@ export const prepareWriteAttestation = async (
...
@@ -10,7 +10,7 @@ export const prepareWriteAttestation = async (
about
:
Address
,
about
:
Address
,
key
:
string
,
key
:
string
,
value
:
string
|
WagmiBytes
|
number
|
boolean
,
value
:
string
|
WagmiBytes
|
number
|
boolean
,
chainId
=
10
,
chainId
:
number
|
undefined
=
undefined
,
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
)
=>
{
)
=>
{
let
formattedKey
:
WagmiBytes
let
formattedKey
:
WagmiBytes
...
...
packages/atst/src/lib/prepareWriteAttestations.ts
View file @
91403c21
...
@@ -14,7 +14,7 @@ type Attestation = {
...
@@ -14,7 +14,7 @@ type Attestation = {
export
const
prepareWriteAttestations
=
async
(
export
const
prepareWriteAttestations
=
async
(
attestations
:
Attestation
[],
attestations
:
Attestation
[],
chainId
=
10
,
chainId
:
number
|
undefined
=
undefined
,
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
contractAddress
:
Address
=
ATTESTATION_STATION_ADDRESS
)
=>
{
)
=>
{
const
formattedAttestations
=
attestations
.
map
((
attestation
)
=>
{
const
formattedAttestations
=
attestations
.
map
((
attestation
)
=>
{
...
@@ -27,9 +27,7 @@ export const prepareWriteAttestations = async (
...
@@ -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`
`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
(
const
formattedValue
=
createValue
(
attestation
.
value
)
as
WagmiBytes
attestation
.
value
)
as
WagmiBytes
return
{
return
{
about
:
attestation
.
about
,
about
:
attestation
.
about
,
key
:
formattedKey
,
key
:
formattedKey
,
...
...
packages/atst/src/types/AttestationReadParams.ts
View file @
91403c21
...
@@ -11,4 +11,5 @@ export interface AttestationReadParams {
...
@@ -11,4 +11,5 @@ export interface AttestationReadParams {
key
:
string
key
:
string
dataType
?:
DataTypeOption
dataType
?:
DataTypeOption
contractAddress
?:
Address
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