public static OperationResult staticOperation(final MessageFrame frame) {
    final BigInteger value0 = new BigInteger(1, frame.popStackItem().toArrayUnsafe());
    final BigInteger value1 = new BigInteger(1, frame.popStackItem().toArrayUnsafe());

    final BigInteger result = value0.add(value1);

    byte[] resultArray = result.toByteArray();
    int length = resultArray.length;
    if (length > 32) {
      frame.pushStackItem(Bytes.wrap(resultArray, length - 32, 32));
    } else {
      frame.pushStackItem(Bytes.wrap(resultArray));
    }

    return addSuccess;
  }
Static operation.

@param frame the frame
@return the operation result
evm/src/main/java/org/hyperledger/besu/evm/operation/AddOperation.java