4.1合约和调用模型(Contract and Call Model)

Fuel uses a similar model to Ethereum for contracts and cross-contract calls. Contracts may call other contracts with a CALL similar to an Ethereum message call). Unlike the EVM, which can only forward its base asset with a call (i.e. ETH), the FuelVM can forward a single native fungible asset with a call.

Fuel在合约和跨合约调用方面使用了与Ethereum类似的模式。合约可以用类似于以太坊消息调用的CALL来调用其他合约)。者与EVM不同,EVM只能通过调用转发其基本资产(即ETH),FuelVM可以通过调用转发单一的本地可替换资产。

Transactions may initiate contract calls. Ethereum transactions may call a single contract directly. Fuel transactions instead execute a script (arbitrary bytecode attached to the transaction), which may call any number of contracts.

交易可以发起合约调用。以太坊交易可以直接调用单个合约。而Fuel交易执行一个脚本(附加在交易上的任意字节码),可以调用任何数量的合约。

Last updated