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
10 months agoDoug
10 months agoMelissa
11 months agoKassandra
11 months agoDaryl
11 months agoFrance
11 months agoDesmond
11 months agoLinwood
11 months agoMalissa
11 months agoMalinda
11 months agoDominga
11 months ago