Skip to content

Commit 83756b3

Browse files
committed
add chainId for address create
1 parent 34b8e38 commit 83756b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

address.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
)
1010

1111
type AddressInput struct {
12+
ChainId string
1213
AssetId string
1314
Label string
1415
Destination string
@@ -18,6 +19,7 @@ type AddressInput struct {
1819
type Address struct {
1920
AddressId string `json:"address_id"`
2021
AssetId string `json:"asset_id"`
22+
ChainId string `json:"chain_id"`
2123
Label string `json:"label"`
2224
Destination string `json:"destination"`
2325
Tag string `json:"tag"`
@@ -43,6 +45,7 @@ func CreateAddress(ctx context.Context, in *AddressInput, user *SafeUser) (*Addr
4345
return nil, err
4446
}
4547
data, err := json.Marshal(map[string]any{
48+
"chain_id": in.ChainId,
4649
"asset_id": in.AssetId,
4750
"label": in.Label,
4851
"destination": in.Destination,

0 commit comments

Comments
 (0)