Skip to content

Commit

Permalink
tmp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Jun 20, 2024
1 parent bc0bed1 commit a709447
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ cairo_project.toml

ethereum/broadcast/

artifacts/
starknet-artifacts/
typechain-types/

build/
cache/
out/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ contract L1AvatarExecutionStrategy is SimpleQuorumExecutionStrategy {
uint256[] memory _starknetSpaces,
uint256 _quorum
) public initializer {
__Ownable_init();
transferOwnership(_owner);
__Ownable_init(_owner);
__SpaceManager_init(_starknetSpaces);
__SimpleQuorumExecutionStrategy_init(_quorum);
target = _target;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ contract L1AvatarExecutionStrategyMockMessaging is SimpleQuorumExecutionStrategy
uint256[] memory _starknetSpaces,
uint256 _quorum
) public initializer {
__Ownable_init();
transferOwnership(_owner);
__Ownable_init(_owner);
__SpaceManager_init(_starknetSpaces);
__SimpleQuorumExecutionStrategy_init(_quorum);
target = _target;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sx",
"version": "1.0.0",
"description": "Cairo 1 implementation of the Snapshot X Protocol",
"repository": "https://github.com/snapshot-labs/sx-starknet-2.git",
"repository": "https://github.com/snapshot-labs/sx-starknet.git",
"author": "Snapshot Labs",
"license": "MIT",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/chain-l2.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
starknet-devnet --seed 42 --verbose --sierra-compiler-path "${STARKNET_SIERRA_COMPILE_PATH}" --compiler-args '--allowed-libfuncs-list-file ./audited_cairo_libfuncs.json --add-pythonic-hints' --lite-mode
starknet-devnet --seed 42
exit 0
3 changes: 2 additions & 1 deletion tests/stark-sig-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('Starknet Signature Authenticator', function () {
let domain: any;

before(async function () {
console.log('account address:', account_address, 'account pk:', account_pk);
account = await starknet.OpenZeppelinAccount.getAccountFromAddress(account_address, account_pk);
const accountFactory = await starknet.getContractFactory('openzeppelin_Account');
const starkSigAuthenticatorFactory = await starknet.getContractFactory(
Expand All @@ -54,7 +55,7 @@ describe('Starknet Signature Authenticator', function () {
await account.declare(vanillaVotingStrategyFactory);
await account.declare(vanillaProposalValidationStrategyFactory);
await account.declare(spaceFactory);
} catch {}
} catch { }

const accountObj = await account.deploy(accountFactory, {
_public_key: account_public_key,
Expand Down

0 comments on commit a709447

Please sign in to comment.