This commit is contained in:
Shawn 2023-12-12 02:03:36 -08:00
parent 53041a03e7
commit 782bb41681

View file

@ -80,6 +80,7 @@ func (c *mint) RequiredGas(input []byte) uint64 {
// TODO
const whitelistCreate2Addr = "0x000000"
// TODO: confirm new abi schema works with contract
func (c *mint) Run(input []byte, ctx *precompileContext) ([]byte, error) {
if ctx.caller != common.HexToAddress(whitelistCreate2Addr) {
@ -108,6 +109,7 @@ func (c *burn) RequiredGas(input []byte) uint64 {
return 100
}
// TODO: confirm new abi schema works with contract
func (c *burn) Run(input []byte, ctx *precompileContext) ([]byte, error) {
if ctx.caller != common.HexToAddress(whitelistCreate2Addr) {