Skip to content

Commit

Permalink
Add parameter for BurnAddress to template.
Browse files Browse the repository at this point in the history
  • Loading branch information
keillera committed Oct 4, 2019
1 parent a14f1a8 commit 3040a60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Parameters:
Type: 'AWS::SSM::Parameter::Value<String>'
AuthleteApiSecret:
Type: 'AWS::SSM::Parameter::Value<String>'
BurnAddress:
Type: 'AWS::SSM::Parameter::Value<String>'

Globals:
Function:
Expand Down Expand Up @@ -152,6 +154,7 @@ Globals:
ELASTIC_SEARCH_ENDPOINT: !Ref ElasticSearchEndpoint
PAID_ARTICLES_TABLE_NAME: !Ref PaidArticlesTableName
PAID_STATUS_TABLE_NAME: !Ref PaidStatusTableName
BURN_ADDRESS: !Ref BurnAddress

Resources:
RestApi:
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ aws cloudformation deploy \
DailyLimitTokenSendValue=${SSM_PARAMS_PREFIX}DailyLimitTokenSendValue \
AuthleteApiKey=${SSM_PARAMS_PREFIX}AuthleteApiKey \
AuthleteApiSecret=${SSM_PARAMS_PREFIX}AuthleteApiSecret \
BurnAddress=${SSM_PARAMS_PREFIX}BurnAddress \
--capabilities CAPABILITY_IAM \
--no-fail-on-empty-changeset

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/me/wallet/tip/me_wallet_tip.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __burn_transaction(burn_quantity, user_eth_address, auth, headers):
burn_payload = json.dumps(
{
'from_user_eth_address': user_eth_address,
'to_user_eth_address': os.environ['BurnAddress'],
'to_user_eth_address': os.environ['BURN_ADDRESS'],
'tip_value': burn_token
}
)
Expand Down

0 comments on commit 3040a60

Please sign in to comment.