Skip to content
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

let* - local environments - overwritten variable bug #78

Open
loredanacirstea opened this issue Jul 28, 2020 · 0 comments
Open

let* - local environments - overwritten variable bug #78

loredanacirstea opened this issue Jul 28, 2020 · 0 comments
Labels
bug Something isn't working on-chain taylor

Comments

@loredanacirstea
Copy link
Owner

While developing eth-pipe-evm, address is incorrect. But (nth currentStep 0) is correct.

((fn* (input steps outputIndexes)
    (let* (
            selectIO (fn* (ioList) (fn* (index) (nth ioList index) ))
        )
        (if (empty? steps)
            (map (selectIO input) outputIndexes)
            (let* (
                    currentStep (first steps)
                    restSteps (rest steps)
                    
                    address (nth currentStep 0)
                    fsig (nth currentStep 1)
                    ;value (nth input (nth currentStep 2))
                    inputIndexes (nth currentStep 2)
                    outputHasSlotSize (nth currentStep 3)

                    ; data (join (map (selectIO input) inputIndexes ))
                    ; packedOutput (call address fsig value data)
                )
                (nth currentStep 0)
                (call
                    address
                    fsig
                    (arrayToBytes (map (selectIO input) inputIndexes ))
                )
                
                ;(eth-pipe-evm (concat input outputList) restSteps outputIndexes)
            )
        )
    )
)
    (list "0x0000000000000000000000000000000000000000000000000000000000000001" "0x00000000000000000000000000000000000000000000000000000000000003e8")
    (list
        (list "0x5eAd49015faE4F30ECAD64d66664177e17ec0407" "0x65de1eb3" (array 0) (array true))
        (list "0x06327658F1561f78b09E38A535d69468C5a70165" "0x69739c89" (array 0 2 1) (array true))
    )
    (array 4)
)
@loredanacirstea loredanacirstea added bug Something isn't working on-chain taylor labels Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working on-chain taylor
Projects
None yet
Development

No branches or pull requests

1 participant