@@ -30,7 +30,7 @@ func (d *DynamoStorageProviderTable) Get(ctx context.Context, provider did.DID)
3030 Key : map [string ]types.AttributeValue {
3131 "provider" : & types.AttributeValueMemberS {Value : provider .String ()},
3232 },
33- ProjectionExpression : aws .String ("provider, operatorEmail, endpoint" ),
33+ ProjectionExpression : aws .String ("provider, address, operatorEmail, endpoint" ),
3434 })
3535 if err != nil {
3636 return nil , fmt .Errorf ("getting storage provider: %w" , err )
@@ -46,7 +46,7 @@ func (d *DynamoStorageProviderTable) Get(ctx context.Context, provider did.DID)
4646func (d * DynamoStorageProviderTable ) GetAll (ctx context.Context , limit int , startToken * string ) (* GetAllResult , error ) {
4747 input := & dynamodb.ScanInput {
4848 TableName : aws .String (d .tableName ),
49- ProjectionExpression : aws .String ("provider, operatorEmail, endpoint" ),
49+ ProjectionExpression : aws .String ("provider, address, operatorEmail, endpoint" ),
5050 Limit : aws .Int32 (int32 (limit )),
5151 }
5252
@@ -93,6 +93,7 @@ func (d *DynamoStorageProviderTable) GetAll(ctx context.Context, limit int, star
9393// We only unmarshal the fields we need
9494type storageProviderRecord struct {
9595 Provider string `dynamodbav:"provider"`
96+ Address string `dynamodbav:"address"`
9697 OperatorEmail string `dynamodbav:"operatorEmail"`
9798 Endpoint string `dynamodbav:"endpoint"`
9899}
@@ -110,6 +111,7 @@ func (d *DynamoStorageProviderTable) unmarshalRecord(item map[string]types.Attri
110111
111112 return & StorageProviderRecord {
112113 Provider : provider ,
114+ WalletAddress : record .Address ,
113115 OperatorEmail : record .OperatorEmail ,
114116 Endpoint : record .Endpoint ,
115117 }, nil
0 commit comments