Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit 756761a

Browse files
committed
updates
1 parent 52c1734 commit 756761a

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

script/DeployAndRedeemTokens.s.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ contract DeployAndRedeemTokens is Script, Test {
6868
// Let's redeem them!
6969
uint256 campaignId = 1;
7070
uint256 requirementsIndex = 0;
71-
bytes32 redemptionHash = bytes32(0);
72-
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash);
71+
bytes32 redemptionHash;
72+
uint256 salt;
73+
bytes memory signature;
74+
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash, salt, signature);
7375

7476
uint256[] memory tokenIds = new uint256[](1);
7577
tokenIds[0] = 1;

script/DeployAndRedeemTrait.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ contract DeployAndRedeemTrait is Script, Test {
9999
bytes32(0), // redemptionHash
100100
traitRedemptionTokenIds,
101101
uint256(0), // salt
102-
bytes("") // signer
102+
bytes("") // signature
103103
);
104104

105105
receiveToken.redeem(new uint256[](0), msg.sender, data);

script/DeployERC721ReceiveTokenWithPredeployedSeadropRedeemToken.s.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {ERC721RedemptionMintable} from "../src/extensions/ERC721RedemptionMintab
1111
import {ERC721OwnerMintable} from "../src/test/ERC721OwnerMintable.sol";
1212
import {ERC721ShipyardRedeemableMintable} from "../src/extensions/ERC721ShipyardRedeemableMintable.sol";
1313

14-
contract DeployERC721ReceiveTokenWithPredeployedSeadropRedeemToken is Script, Test {
14+
contract DeployERC721ReceiveTokenWithPredeployedSeaDropRedeemToken is Script, Test {
1515
function run() external {
1616
vm.startBroadcast();
1717

@@ -67,8 +67,10 @@ contract DeployERC721ReceiveTokenWithPredeployedSeadropRedeemToken is Script, Te
6767

6868
// Let's redeem them!
6969
uint256 requirementsIndex = 0;
70-
bytes32 redemptionHash = bytes32(0);
71-
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash);
70+
bytes32 redemptionHash;
71+
uint256 salt;
72+
bytes memory signature;
73+
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash, salt, signature);
7274

7375
uint256[] memory tokenIds = new uint256[](1);
7476
tokenIds[0] = 1;

script/RedeemTokens.s.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ contract RedeemTokens is Script, Test {
2121
// Let's redeem them!
2222
uint256 campaignId = 1;
2323
uint256 requirementsIndex = 0;
24-
bytes32 redemptionHash = bytes32(0);
25-
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash, bytes32(0), "");
24+
bytes32 redemptionHash;
25+
uint256 salt;
26+
bytes memory signature;
27+
bytes memory data = abi.encode(campaignId, requirementsIndex, redemptionHash, salt, signature);
2628

2729
uint256[] memory redeemTokenIds = new uint256[](1);
2830
redeemTokenIds[0] = 1;

0 commit comments

Comments
 (0)