Skip to content

Commit

Permalink
Updated terms of service and verift script
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jan 10, 2024
1 parent 1db955b commit 81952ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ forge create \
Save the address. Because Polygonscan is a hard mistress and tends to crash, verify manually:

```shell
export CONTRACT_ADDRESS=0xDCD7C644a6AA72eb2f86781175b18ADc30Aa4f4d.
export CONTRACT_ADDRESS=0xDCD7C644a6AA72eb2f86781175b18ADc30Aa4f4d
scripts/verify-deployment.sh
```

Expand All @@ -128,6 +128,7 @@ print(get_signing_hash(INITIAL_ACCEPTANCE_MESSAGE).hex())
```shell
export ACCEPTANCE_MESSAGE_HASH=808318f1c18ddfb861cd9755fe5005e3028f816039dc42a1b52e4f5031b645a4
export TERMS_OF_SERVICE_VERSION=1
export CONTRACT_ADDRESS=0xDCD7C644a6AA72eb2f86781175b18ADc30Aa4f4d
```

Then set the initial version:
Expand All @@ -136,14 +137,15 @@ Then set the initial version:
cast send \
--private-key $DEPLOY_PRIVATE_KEY \
--rpc-url $JSON_RPC_POLYGON \
"updateTermsOfService(uint16 version, bytes32 acceptanceMessageHash)" \
$CONTRACT_ADDRESS \
"updateTermsOfService(uint16,bytes32)" \
$TERMS_OF_SERVICE_VERSION \
$ACCEPTANCE_MESSAGE_HASH
```

## Deployment

A test deployment can be found on Polygon []().
A test deployment can be found on Polygon [0xDCD7C644a6AA72eb2f86781175b18ADc30Aa4f4d](https://polygonscan.com/address/0xDCD7C644a6AA72eb2f86781175b18ADc30Aa4f4d).

## More information

Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ forge verify-contract \
--chain polygon \
--constructor-args $(cast abi-encode "constructor()") \
$CONTRACT_ADDRESS \
src/VaultUSDCPaymentForwarder.sol:VaultUSDCPaymentForwarder
src/TermsOfService.sol:TermsOfService

0 comments on commit 81952ef

Please sign in to comment.