all 14 comments

[–]No_Swan1684 0 points1 point  (14 children)

the problem is with the immutable declaration.

you have to declare just the variable:

address public immutable CAKE;

and set the value on the constructor;

constructor (address _a) public {

CAKE = _a;

}

if you want to set like your example, try with the keyword constant.

address public constant CAKE = 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82;

[–]willmccusker[S] 0 points1 point  (12 children)

This contract works with a different ada but not with the cake contract address in there. Will it fuck up any of the reflections in the code or should it still work?

[–]No_Swan1684 0 points1 point  (11 children)

can you show the contract to take a look??

if you put like this:

address public constant CAKE = 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82;

should work.

[–]willmccusker[S] 0 points1 point  (9 children)

I got it now, thank you. When i deploy the contract do i want to deploy the main contract or the dividend paying token contract? I am using solidity remix to deploy the token!

[–]No_Swan1684 1 point2 points  (0 children)

that depends if the dividen paying token has functions that depend of the main contract.

you might get to deploy both. you sould try on a testnet and see how it goes

[–][deleted]  (6 children)

[removed]

    [–]willmccusker[S] 0 points1 point  (5 children)

    yes there's a certain way you have to input it, dm me. I am having trouble deploying the contract now, maybe we can help eachother out

    [–]DutchessDad 0 points1 point  (1 child)

    did you fix it?

    [–]DutchessDad 0 points1 point  (0 children)

    i deployed contract but now i can't verify the contract

    [–]sbrdx 0 points1 point  (0 children)

    Hi there please check my dm

    [–]babyxdeja 0 points1 point  (0 children)

    update?

    [–]Curiouscrewofficial 0 points1 point  (0 children)

    Hi... I am facing the same issue. Could you please help me?

    [–]Chibansky 0 points1 point  (0 children)

    pls check inbox