-
Notifications
You must be signed in to change notification settings - Fork 18
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
Publish solutions to CTF challenegs #5492
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: salaheldinsoliman <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
… into devx/ctf-solutions
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
Signed-off-by: salaheldinsoliman <[email protected]>
✅ Vercel Preview Deployment is ready! |
|
||
iota client ptb --move-call 0xc6f00a2b5ec2d161442b305dcb307ba914e20c5268ec931bd14d7ea3454b262b::mintcoin::mint_coin @0x11d7aacb27eb65063dbb6ce0fa07f7807316c5e77763c6f2356d1bd3a34a2741 \ | ||
--move-call 0xc6f00a2b5ec2d161442b305dcb307ba914e20c5268ec931bd14d7ea3454b262b::mintcoin::mint_coin @0x11d7aacb27eb65063dbb6ce0fa07f7807316c5e77763c6f2356d1bd3a34a2741 \ | ||
--move-call 0xc6f00a2b5ec2d161442b305dcb307ba914e20c5268ec931bd14d7ea3454b262b::mintcoin::mint_coin @0x11d7aacb27eb65063dbb6ce0fa07f7807316c5e77763c6f2356d1bd3a34a2741 |
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.
How about defining the package id and treasury cap as env variables and use them? Would improve the readability a lot. Same in the other examples
MINT_COIN_PACKAGE=0xc6f00a2b5ec2d161442b305dcb307ba914e20c5268ec931bd14d7ea3454b262b
TREASURY_CAP=0x11d7aacb27eb65063dbb6ce0fa07f7807316c5e77763c6f2356d1bd3a34a2741
iota client ptb --move-call $MINT_COIN_PACKAGE::mintcoin::mint_coin @$TREASURY_CAP \
--move-call $MINT_COIN_PACKAGE::mintcoin::mint_coin @$TREASURY_CAP \
--move-call $MINT_COIN_PACKAGE::mintcoin::mint_coin @$TREASURY_CAP
// Deserialize the bytes back into a Pizza struct. | ||
let pizza: Pizza = bcs::from_bytes(&data).expect("Deserialization failed"); | ||
|
||
println!("Expected Pizza Struct: {:?}", pizza); |
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.
println!("Expected Pizza Struct: {:?}", pizza); | |
println!("Expected Pizza Struct: {pizza:?}"); |
@@ -16,7 +16,7 @@ module ctf::vault{ | |||
user: address | |||
} | |||
|
|||
public struct Receipt { | |||
public struct Receipt {zero |
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.
Copy paste mistake?
public struct Receipt {zero | |
public struct Receipt { |
Description of change
Added solutions in the form of commented bash scripts
Links to any relevant issues
addresses:
#5163
#5217
Be sure to reference any related issues by adding
fixes #(issue)
.Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.