Skip to content

Commit

Permalink
fix: rename deploymet to SignedMultiGiveaway
Browse files Browse the repository at this point in the history
  • Loading branch information
adjisb committed Aug 8, 2023
1 parent 360af8c commit 147b2c1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/deploy/deploy/100_claim/100_multi_claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const func: DeployFunction = async function (
const {deployments, getNamedAccounts} = hre;
const {deployer, upgradeAdmin, sandAdmin} = await getNamedAccounts();
const TRUSTED_FORWARDER = await deployments.get('TRUSTED_FORWARDER_V2');
await deployments.deploy('MultiGiveawayV1', {
await deployments.deploy('SignedMultiGiveaway', {
from: deployer,
contract:
'@sandbox-smart-contracts/giveaway/contracts/SignedMultiGiveaway.sol:SignedMultiGiveaway',
Expand All @@ -26,5 +26,5 @@ const func: DeployFunction = async function (
};

export default func;
func.tags = ['MultiGiveawayV1', 'MultiGiveawayV1_deploy', 'L2'];
func.tags = ['SignedMultiGiveaway', 'SignedMultiGiveaway_deploy', 'L2'];
func.dependencies = ['TRUSTED_FORWARDER_V2'];
10 changes: 5 additions & 5 deletions packages/deploy/deploy/100_claim/200_multi_claim_role_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ const func: DeployFunction = async function (
const {deployments, getNamedAccounts} = hre;
const {execute, read, catchUnknownSigner} = deployments;
const {sandAdmin, backendCashbackWallet} = await getNamedAccounts();
const signerRole = await read('MultiGiveawayV1', 'SIGNER_ROLE');
const signerRole = await read('SignedMultiGiveaway', 'SIGNER_ROLE');
if (
!(await read(
'MultiGiveawayV1',
'SignedMultiGiveaway',
'hasRole',
signerRole,
backendCashbackWallet
))
) {
await catchUnknownSigner(
execute(
'MultiGiveawayV1',
'SignedMultiGiveaway',
{from: sandAdmin, log: true},
'grantRole',
signerRole,
Expand All @@ -29,5 +29,5 @@ const func: DeployFunction = async function (
};

export default func;
func.tags = ['MultiGiveawayV1', 'MultiGiveawayV1_role_setup', 'L2'];
func.dependencies = ['MultiGiveawayV1_deploy'];
func.tags = ['SignedMultiGiveaway', 'SignedMultiGiveaway_role_setup', 'L2'];
func.dependencies = ['SignedMultiGiveaway_deploy'];
6 changes: 3 additions & 3 deletions packages/deploy/test/multiGiveaway/multiGiveaway.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {getContract, withSnapshot} from '../../utils/testUtils';
import {expect} from 'chai';

const setupTest = withSnapshot(['MultiGiveawayV1'], async (hre) => {
const setupTest = withSnapshot(['SignedMultiGiveaway'], async (hre) => {
const namedAccount = await hre.getNamedAccounts();
const contract = await getContract(hre, 'MultiGiveawayV1');
const contract = await getContract(hre, 'SignedMultiGiveaway');
return {
contract,
namedAccount,
};
});

describe('MultiGiveawayV1', function () {
describe('SignedMultiGiveaway', function () {
describe('check roles', function () {
it('admin', async function () {
const fixtures = await setupTest();
Expand Down

0 comments on commit 147b2c1

Please sign in to comment.