import("fmt""math/big")typeGasLimitErrstruct{MessagestringIs,Max*big.Int}funcIsGasLimitErr(errerror)bool{_,ok:=err.(*GasLimitErr)returnok}func(err*GasLimitErr)Error()string{returnerr.Message}funcGasLimitError(is,max*big.Int)*GasLimitErr{return&GasLimitErr{Message:fmt.Sprintf("GasLimit error. Max %s, transaction would take it to %s",max,is),Is:is,Max:max}}