Blockchain CBDE Exam - Topic 1 Question 10 Discussion
Address.Call vs. Address.Delegatecall:
A) Address.call() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.delegatecall() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and delegatecall can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.
B) Address.delegatecall() is used for calling other contracts using the scope of the called contract in terms of storage variables. Address.call() is used for libraries, which uses the storage variables of the contract who called. Libraries are a great way to re-use already existing code and call() can make sure that no storage is used from the library, instead it looks like the code is directly copied into the calling contract.
Aileen
7 months agoDoug
7 months agoMelissa
8 months agoKassandra
8 months agoDaryl
8 months agoFrance
8 months agoDesmond
8 months agoLinwood
8 months agoMalissa
8 months agoMalinda
8 months agoDominga
8 months ago