-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: stark tx auth #477
feat: stark tx auth #477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
let (factory, space) = deploy(@config); | ||
let authenticator = setup_stark_tx_auth(space, config.owner); | ||
|
||
let quorum = u256_from_felt252(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1_u256
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually can grep and replace u256_from_felt252(constant)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh theres a lot of other places where i used u256_from_felt252
or even u256 { 1, 0} so will fix on a diff pr
let authenticator = setup_stark_tx_auth(space, config.owner); | ||
|
||
let quorum = u256_from_felt252(1); | ||
let mut constructor_calldata = ArrayTrait::<felt252>::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use let mut constructor_calldata: Array<felt252> = array![]
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im not sure how to do this while serializing the types into the array of felts. any ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you can do this in a one liner but here I was just referring to using array![]
instead of ArrayTrait::<felt252>::new()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serializing will still need to be done on the line just after i'm afraid
ArrayTrait::<felt252>::new(), | ||
ArrayTrait::<felt252>::new() | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array![]
?
No description provided.