Closed Draggu closed 1 week ago
I am applying to this issue via OnlyDust platform.
Member of Dojo Coding. I have contributed before to other Rust projects like
kakarot-rpc
ef-tests
Madara
Starknet phone
Can I work on this issue?
Check my OnlyDust profile, I've contributed to many projects: Profile
I am applying to this issue via OnlyDust platform.
Hi, I am ICT student and for the last few months i was really intrested in Rust and Cario. I also work professionallyas software developer. I hope can help you solve this and start my journey in Cario world
I'd remove the CairoSerialize implementation for String and &str, then search for any structs or enums using these types and replace them with ByteArray. I'd use the methods to convert String and &str into ByteArray where needed.
I am applying to this issue via OnlyDust platform.
Rust experience and a regular Foundry user for Starknet smart contract testing. Regular "Cairo Book" and "Starknet By Examle" contributor. Creator and maintainer of Cairo learning track on Exercism. As a regular Foundry user, I'm very interested in making it as efficient and as clean as possible.
I am applying to this issue via OnlyDust platform.
Good day, My name is Deon, I am a passionate Full-Stack Web3 developer. I have sufficient experience building web3 applications/smart contracts with rust as well as high-performance backends.
I have a solid understanding of both backend development and data management. Iām committed to writing clean, maintainable code and actively contributing to open-source projects.
Remove the Implementation: Firstly, I'll locate and delete the CairoSerialize implementation for String and &str from the codebase.
Update Structs/Enums: I'll then use the Rust compiler to identify all structs and enums that currently implement CairoSerialize with String or &str. I will then replace these types with ByteArray.
Implement Conversion: I'll ensure proper conversion from String and &str to ByteArray as specified, using the provided methods for both types.
Run Linting and Testing: I'll execute cargo lint to identify any remaining issues, making necessary adjustments to ensure all errors are resolved.
By following these steps, I will enhance the compatibility of our code with Cairo and improve overall data handling in the project.
Hi all! š
Thank you so much for all the submissions! I'm curating this issue and would like to clarify that when I added this to the hackathon, I envisioned it more as an entry-level task. I want to provide a chance for new developers, so I'll be assigning this to @Nemezjusz.
Sorry, @Gerson2102! š I know you were first, but I think this task might be too easy for you.
Thanks for understanding! š
@ksew1 got it mate, dont worry. Let me know if there is any issue for me please. Thanks!
@Nemezjusz any progress on this?
I couldn't find the time yesterday, but I'm on it now :)
Which components does the task require to be changed? (think hard pls)
snforge
Description
Cairo does not support strings. We need to establish a one-to-one mapping and remove the CairoSerialize implementation for String and &str.
Proposed steps:
structs/enums
implentingCairoSerialize
with ByteArray instead of String or &str.Tip:
String
toByteArray
can be done as follows:&str
toByteArray
can be done as follows:structs/enums
implentingCairoSerialize
use String or &str. After doing step 1. Runcargo lint
and find places where errors occure