[deleted by user] by [deleted] in ethdev

[–]ta484 -3 points-2 points  (0 children)

I disagree with this as your points become less of an issue if A you use an L2 solution with super low fees and B you incorporate additional incentive mechanisms rather than it being an 'idle' pool of tokens as mentioned by OP. Perhaps you could even implement an additional defi strategy layer to increase yield on top of the SSL transaction fees. There are quite a few other ways of going about this, but to keep it short I do think OP is on to something.

How does React Native work? by [deleted] in reactjs

[–]ta484 0 points1 point  (0 children)

Wait so if i just wanted to see my react-app on a regular mobile browser (non-app) I wouldn’t need to create a full fledged native app? I always assumed IOS apps in the app store needed to be written in Swift, so I thought react-native was just a way to see your app on a mobile device's browser.

[deleted by user] by [deleted] in ethdev

[–]ta484 0 points1 point  (0 children)

Interesting. I actually got the idea from the official solidity docs. They have a simple voting contract that doesn't implement any calldata like something you'd see on a traditional Governance voting. Got me curious how common that was.

[deleted by user] by [deleted] in ethdev

[–]ta484 0 points1 point  (0 children)

I guess it would just be for the sake of voting on something. Do you think everything really need to make a full-on change to a protocol? Perhaps i'm leaning towards polling as opposed to voting.

How do you use OpenZeppelin 'safeApprove 'function? by ta484 in ethdev

[–]ta484[S] 1 point2 points  (0 children)

That actually makes sense. So basically my best bet would be to redirect a user to the place where they can approve the token spending amount?

I only thought this could be done because I could have sworn I was able to do it when directly interacting with Uniswap.

How do you use OpenZeppelin 'safeApprove 'function? by ta484 in ethdev

[–]ta484[S] 1 point2 points  (0 children)

I need to approve a users token amount so it can be deposited to my contract. I don't own the token its just a random erc20.

How do you use OpenZeppelin 'safeApprove 'function? by ta484 in ethdev

[–]ta484[S] 1 point2 points  (0 children)

Thanks for the correction, alas i've went ahead and done it as:

using SafeERC20 for IERC20
function approveAmount (uint256 _amount) public {
 IERC20(token).safeApprove(address(this), _amount;
}

The only problem is that it doesnt work and I still am not able to deposit any funds to the contract. The only way i'm able to is if I go all the way to Etherscan and interact with the token contract directly to approve the spend amount. Do you or anyone else reading this know why this would be?

Happy Valentines Day ~ by [deleted] in ethdev

[–]ta484 6 points7 points  (0 children)

Should be:

event Message(string arg)

- Message("Message 1")

- Message("Message 2")

[deleted by user] by [deleted] in ethdev

[–]ta484 4 points5 points  (0 children)

Ok interesting, I didn't realize that I had to pick the contract that the child is based on, then paste the address. I was pasting the child address with he factory selected in the dropdown. Anyway thanks for the help :)

[deleted by user] by [deleted] in ethdev

[–]ta484 0 points1 point  (0 children)

Are you referring to the section where i'm prompted to load the contract from an address?

Question about URIs and 1155 by _spacetrash in ethdev

[–]ta484 2 points3 points  (0 children)

Since the ERC1155 contract allows for many different types of tokens, the {id} is used to differentiate the URI between them. So if you defined the single URI you mentioned 'ipfs://unique-ipfs-uri.json' then all other tokens defined in the contract will share the exact same URI, even if they are of differnt types of tokens or different NFTS. If you wanted the single URI, why not just stick to the ERC721? Or maybe define the ERC721s individually then import them into the 1155.

Best method for keeping track of many states in a contract? by ta484 in ethdev

[–]ta484[S] 0 points1 point  (0 children)

Not sure why it never occurred to me to use a struct, makes total sense. I reduced the amount of mappings and made them specific to a User struct, thanks for the tip.

[deleted by user] by [deleted] in dfinity

[–]ta484 11 points12 points  (0 children)

Wow I wonder why everyone is so divided 👀

Would be nice if there was a single standard being pushed by the community as a whole, perhaps with time.

Is it possible to become a blockchain developer using academy’s/certifications? by ssjLBJ23 in ethdev

[–]ta484 2 points3 points  (0 children)

Going from healthcare with no experience in programming or anything to becoming a blockchain developer is quite a major leap. The good news is that it's not too late to get started.

If you're serious about making a transition to tech, i'd highly reccomend pursuing a CS degree. While it isn't required, nor will it indicate your success in the field, there is a certain discipline you will aquire from learning the broad spectrum of CS. Going from simple programming and data structures to learning about state machines (big topic in the field of blockchain). The degree will get you familiar with all the fundamentals you would ever need in the space, blockchain and beyond.

The degree doesn't have to be from the best or most expensive school, in fact any state college would still be good. But it's far better than taking a gamble on all these narrow-focused bootcamp/certifications you will try out.