Open LucasSte opened 1 year ago
hi i like to take this issue , so we need to just remove the duplicate the code
Hi @Arun9650 , Yes, the idea is just to remove the duplicate code using either functions or Rust macros.
hi i like to take this issue , so we need to just remove the duplicate the code
Great, go for it! Please let us know if you have any questions.
hello, I would like to take this issue, I have started working to fix repetitive code by adding function to generate the pointer in target.rs, I would like to show you code to check if am going in right direction and also the naming convention I am using for it is correct or not.
hello, I would like to take this issue, I have started working to fix repetitive code by adding function to generate the pointer in target.rs, I would like to show you code to check if am going in right direction and also the naming convention I am using for it is correct or not.
Ah, thanks for your contribution. We've seen your PR.
Is this issue still open ? If yes, I'd like to work on it
Is this issue still open ? If yes, I'd like to work on it
Hey @mayank-pathakk, Yes, the issue is still open. You can work on it.
I'd like to work on this issue, if its still open!
1.
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/emit/substrate/target.rs#L364-L371
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/emit/substrate/target.rs#L452-L459
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/emit/substrate/target.rs#L528-L535
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/emit/substrate/target.rs#L638-L645
======================================== 2.
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/sema/types.rs#L588-L594
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/sema/types.rs#L682-L689
======================================== 3.
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/codegen/vector_to_slice.rs#L60-L65
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/codegen/vector_to_slice.rs#L79-L83
https://github.com/hyperledger/solang/blob/1b46d73b32449a09ba1c1e54c8073ecb4d7cf4a0/src/codegen/vector_to_slice.rs#L91-L95